Giving a variable name from a vector
조회 수: 12 (최근 30일)
이전 댓글 표시
I have a vector of values, e.g.
x = [1 2 3]
I want to create a list of variables with the names
alg1_oper_x(i)_par1 = zeros(n,1);
such that i takes values from the vector x. How can I do it? Is there some parsing involved?
thanks
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 11월 6일
Sorry, doing that is banned in 143 countries due to industry health and safety regulations [*]
[*] ... or at least should be.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Import Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!