How do you insert a changing variable into an input command?
显示 更早的评论
So for example,
for k=1:5 & i=1:5
x(k)=input('Enter value of (i) state')
end
For the above I want 5 input commands asking for the value of the state.
Enter value of 1 state,
Enter value of 2 state,
Enter value of 3 state, etc.
The code above does not seem to give that, any help please I am a novice user of Matlab. Thank You
1 个评论
Azzi Abdelmalek
2013-2-17
you can't do this
for k=1:5 & i=1:5
采纳的回答
更多回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!