Name Storage with Repeat loops
이전 댓글 표시
f=input('Enter First Name:')
l=input('Enter Last Name:')
for [f,l]
repeat
strvcat(f,l)
until f=Jed
end
I need help with this code, what I'm tying to do is store names in a loop until the name Jed is typed in. I thought this code would do the trick, but I am unsuccessful.
댓글 수: 2
the cyclist
2015년 4월 29일
편집: the cyclist
2015년 4월 29일
Are you using MuPAD? There is no "repeat ... until" structure within MATLAB.
TS
2015년 4월 29일
채택된 답변
추가 답변 (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!