|
|
Re: ??? Output argument "r" (and maybe others) not assigned during
Posted:
May 8, 2012 1:01 AM
|
|
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
|
|