help-octave
[Top][All Lists]
Advanced

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

Re: displaying an image


From: Dmitri A. Sergatskov
Subject: Re: displaying an image
Date: Sat, 12 Sep 2015 16:03:39 -0500



On Sat, Sep 12, 2015 at 3:39 PM, lana frankle <address@hidden> wrote:

Just guessing, is this what you’re trying to do?

x = linspace (3, 5, 21);
y=((x+5).^2)/(4+3*x.^2);
​      ^^^^^^^^^^^^^^^^^^^^^^^^^^
This, probably should be
​y=((x+5).^2)./(4+3*x.^2)

​For educational purposes try

y1 = ​((x+5).^2)
y2 = (4+3*x.^2)

plot (x,y1)
hold on
plot (x,y2)

figure(2)

plot (x, y1/y2)
hold on
plot (y1./y2)

​Dmitri.
​--



reply via email to

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