Filling A matrix with characters in a loop
이전 댓글 표시
Hello i want to fill a matrix with characters in a loop, for example i want to have a variable 'n' which my loop starts with 1 and ends with 'n' and fill a matrix with one column and 'n' rows with characters like 's' in some rows in a condition and 'us' in another condition, in the other word; i dont know how i can fill a char matrix in a loop
댓글 수: 1
Image Analyst
2012년 4월 7일
Will the conditions change once you're into the loop, or is the condition the same for the whole loop? Is it a 2D matrix? If so, which column do you want to assign?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!