Info
此问题已关闭。 请重新打开它进行编辑或回答。
PLOT problem
1 次查看(过去 30 天)
显示 更早的评论
I somehow change the default values for the axis and now is showing x from -1 to 1 and y from 0 to 2.
This is all the code I have.
x = zeros (100,1);
for i = 1:1:100;
c = cos(x);
s = sin(x);
t = tan(x);
sqr = sqrt(x);
expon = x.^2;
inverse = 1./x.^2;
end
plot (x,c)
0 个评论
回答(3 个)
Andrew Newell
2012-1-27
I think you are trying to do something like this:
x = 1:100;
c = cos(x);
plot (x,c)
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!