Convert 181*1 matrix to 181 times 1*1 matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi i have 181*1 Matrix and all elements are text. My question is do you know how to create 181 times 1*1 matrix in Workspace from this 181*1 Matrix ? because i want to use all These variables or elements in different equations!!
a=[velocity;mass;volume;acceleration....] which i Need is: [velocity] [mass] [voluem] [acceleration] as an variable thanx a lot
댓글 수: 2
David Young
2015년 1월 22일
Please don't do it! This would be a terrible solution. Just access the array elements using indexing.
채택된 답변
Image Analyst
2015년 1월 22일
People think of this horrible idea so often that there is even a FAQ about it: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!