correct syntax for appending number to word in for loop
조회 수: 2(최근 30일)
표시 이전 댓글
I was wondering if somebody could help me with a for loop.
In the for loop below, what would be the correct syntax be to make the variable dt equal to dt1 in the first loop? How do you append a 1 onto the dt? So that dt = dt1?
Thank you for your help
dt = dt"j";
댓글 수: 0
Doug Hull 2013년 11월 18일
for i = 1:10;
str = ['dt' num2str(i)]
댓글 수: 1
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!