Filling A matrix with characters in a loop
Ältere Kommentare anzeigen
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 Kommentar
Image Analyst
am 7 Apr. 2012
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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!