I am working on a project where I can input names and have them stored in a matrix or vector, but keep getting this error.
"Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
Error in Cy_Young_Program (line 4)
pitcher_prompt(pn) = input('Input Pitcher Name: ',"s")"
Here is the code I am using...
injury_prob = rand;
%Code for inputing different pitchers names
for pn = 1:3
pitcher_prompt(pn) = input('Input Pitcher Name: ',"s")