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!