octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of "Octave:invalid-input-arg" as warning id


From: Nicholas Jankowski
Subject: Re: use of "Octave:invalid-input-arg" as warning id
Date: Tue, 15 Dec 2015 11:31:09 -0500

On Tue, Dec 15, 2015 at 11:24 AM, Nicholas Jankowski <address@hidden> wrote:
On Tue, Dec 15, 2015 at 11:01 AM, Carlo De Falco <address@hidden> wrote:

On 15 Dec 2015, at 16:50, Nicholas Jankowski <address@hidden> wrote:

> Matlab 2015a:
> no output other than the expected values of t and y if your remove the ;

could please also try what happens if ask for no output values?

ode45(@(t,x)[x(2); -(2*pi*3)^2*x(1)], [0 1], [1 0])

thanks,
c.



with or without a semicolon, it automatically creates a plot of the output. Same as running:
>> [t y] = ode45(@(t,x)[x(2); -(2*pi*3)^2*x(1)], [0 1], [1 0]);
>> plot(t,y,'-o')
>> clear t y;

that was unexpected as i don't see it mentioned in the docs, but it is described elsewhere:
"With no output arguments, ode45 automatically plots the solution as it is computed. "
http://www.mathworks.com/company/newsletters/articles/stiff-differential-equations.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]