Strings
이전 댓글 표시
I am a newbie in MATLAB and I've got a stupid question ;) In a part of my program I need to add a part in a while loop to show the number of matrix. I want it to show this as the output:
For exapmple:
Matrix 1 = []
Matrix 2 = []
So as you see I want the same word "Matrix" in all outputs but the numbers in front should be changed. My problem is not how to work with loops, rather I do not know any command to put numbers (1, 2, 3, ...) in front of words (Matrix or any other string).
I very much appreciate helping me.
채택된 답변
추가 답변 (1개)
Walter Roberson
2011년 3월 4일
2 개 추천
댓글 수: 1
Jan
2011년 3월 4일
@Mehdi: This definitely the best possible help. Using a complicated method to create variables, which include the index in the name, demands for further complicated methods to access these variables later again. Voted: +1
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!