correct syntax for appending number to word in for loop
조회 수: 2(최근 30일)
표시 이전 댓글
Hello,
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
Journeynumber=3;
dt1=2;
at1=4;
dt2=7;
at2=8;
for j=1:Journeynumber
dt = dt"j";
end
댓글 수: 0
채택된 답변
추가 답변(0개)
참고 항목
범주
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!