Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How can I assign numbers to variables names? such as a1 a2 a3 a4 a5 ... using for loop in MATLAB can I actually do
How can I assign numbers to variables names? such as a1 a2 a3 a4 a5 ... using for loop in MATLAB
can I actually do like this?
for i =1:5
a{i} = input('Please enter number');
end
However, when I would like to compile that the error occurs... it says
playerti+11 input Please enter tocation to move li 91 T); The variable 'player' appears to change size on every loop iteration (within a script). Consider preallocating for speed. DetailsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started