Answered step by step
Verified Expert Solution
Link Copied!

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 saysimage text in transcribed

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. Details

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago