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)
Best Answer