questions on assigning values from a vector
显示 更早的评论
Hi all,
I am trying to do this assignment:
x1=x(1);
x2=x(2);
.
.
xN=x(N);
How could I do it using a for loop so that I don't need to write them down explicitly. Thanks.
采纳的回答
更多回答(1 个)
Sean de Wolski
2013-12-10
编辑:Sean de Wolski
2013-12-10
1 个投票
This is generally recommended against as it is much easier (not to mention faster) to manipulate a 1xn vector x than dealing with n scalar arrays.
类别
在 帮助中心 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!