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에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!