MATLAB: I can’t request user sting input input n = input('Enter the number of students'); for i=1:1:nname(i) = input('What is your name? :','s'); end Best Answer Since the names may be different lengths name needs to be a cell array. Try name{i} instead of name(i). Related SolutionsMATLAB: Prompt user for a text string I think you wantname=input(prompt,'s');to specify a string. MATLAB: Can’t run scrips This is not a valid file name: Copied const chain 30Oct.mWhile naming the scripts, there should be no space.....rename it with _, at spaces.This is valid file name: Copied_const_chain_30Oct.m Related QuestionCan’t print picturesCan’t plot convolution
Best Answer