help-octave
[Top][All Lists]
Advanced

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

Re: Syntax issue


From: Doug Stewart
Subject: Re: Syntax issue
Date: Sun, 23 Oct 2011 19:25:37 -0400

try y=1./x;
Doug

On Sun, Oct 23, 2011 at 7:11 PM, Rick T <address@hidden> wrote:
Greetings All

I create x values 1 through 10 then I calculate y by dividing it by x
I thought my x values would be  1,2,3,4,5,6,7,8,9,10
and my y values would be 1/1,1/2,1/3,1/4,1/5,1/6,1/7,1/8,1/9,1/10
but that isn't the case what am I doing wrong.

x=linspace(1,10,10)';

y=1/x;

y=y'

xy=[x y]




_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave




--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

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