plz send me the answer
信息
This question is locked. 请重新打开它进行编辑或回答。
显示 更早的评论
0 个评论
回答(5 个)
Walter Roberson
2012-3-26
0 个投票
This is not possible in MATLAB, as MATLAB arrays cannot be indexed at negative numbers or 0, but you want to index y at -3, -2, -1, and 0, along with 1, 2, and 3.
1 个评论
fadi rami
2012-3-26
Geoff
2012-3-26
I think you mean this:
x = -3:3;
y = 2 * x + 3;
plot(x, y);
Image Analyst
2012-3-26
0 个投票
Don't forget to check your duplicate post in the newsgroup: http://groups.google.com/group/comp.soft-sys.matlab/browse_frm/thread/23153174886ed6bd?hl=en#
0 个评论
MATLAB does not allow negative or zero indices. MATLAB array indexing must start at 1
0 个评论
y[n]=x[2n+3]
with x=[1,2,3,4,5,6,7] and n=−3:3.
0 个评论
This question is locked.
类别
在 帮助中心 和 File Exchange 中查找有关 Fractals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!