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: ??? Output argument "r" (and maybe others) not assigned during call to
Replies: 8   Last Post: May 8, 2012 1:23 AM

Advanced Search

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

Posts: 5,147
Registered: 2/7/05
Re: ??? Output argument "r" (and maybe others) not assigned during
Posted: May 8, 2012 1:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 5/7/2012 11:35 PM, Clement Tham wrote:
> Argh! i think i know my mistake
>
> function x = x_i(x,h,u)
> x_i = x + h*u;
> end
>
> should be
>
> function x = x_i(x,h,u)
> x = x + h*u;
> end
>
> whole night cant sleep because of this silly mistake


Well, when I face a strange problem that I do not
understand because it sits inside complicated
code, I try to reproduce the problem on the side, using
the most simple code structure possible by removing all
needed layers and peripheral code.

Almost always, I find the problem that way, because things
now become clear when all the clutter was removed.

--Nasser



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

[Privacy Policy] [Terms of Use]

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