The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Subscripted assignment dimension mismatch in Matlab function block
Replies: 4   Last Post: Jul 15, 2014 10:34 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: Subscripted assignment dimension mismatch in Matlab function
Posted: Jul 13, 2014 2:52 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 07/13/2014 1:10 PM, Simone Stefano wrote:
> dpb <> wrote in message <lpug1t$jlj$>...

>> Well, clearly for the inputs you passed, costfunction did _not_ return
>> a constant. You note it takes four inputs but you passed vectors
>> instead of single values; one presumes the function has been
>> vectorized and given multiple inputs it returns multiple outputs.
>> Would need to see code for it to tell that for absolute certain but
>> it's almost got to be given the symptoms and diagnostic information.

> Thanks for you answer
> Costfunction returns just one number. Inside the cost function there is
> the sum of the all inputs multiplied for some weights.
> There is a way to avoid this problem?

The error clearly said it did _not_ return just one number. Again, need
to see details on it to tell anything more.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.