[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Syntax issue
From: |
Rick T |
Subject: |
Syntax issue |
Date: |
Sun, 23 Oct 2011 13:11:59 -1000 |
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]