store the input into the cell array with a loop
显示 更早的评论
I try to store three input into a cell array by using loop there are some parts I messed up. It said undefined 'game', what should I change with my code?
game1= input('Enter your game :','s')
game2= input('Enter your game :','s')
game3= input('Enter your game :','s')
n = 3;
for i = 1:n
i = cell{game*n}
thegame(i);
end
disp(thegame)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Strategy & Logic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!