I have just started learning to program using Matlab. I would like to learn how to create the following user inputs into an array,
1) Prompt user to input how many number that array will have
N = input('Enter the number of element the array has: ');
2) Prompt the user to input the number for the first element of the array until the nth of the element? (Prompt must displays which element of the array it is asking for the input)
3) Print out the element of the array.
For Example,
Enter the number of element of the array has: 4
Enter the number for the 1 element of the array: 5
Enter the number for the 2 element of the array: 7
Enter the number for the 3 element of the array: 7
Enter the number for the 4 element of the array: 7
Please help!!!