Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
dpb

Posts: 8,296
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 <none@non.net> wrote in message <lpug1t$jlj$1@dont-email.me>...
>

>> 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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.