Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
MATLAB

Subject: MATLAB

From: Nikita S

Date: 25 Aug, 2010 16:34:06

Message: 1 of 3

I need to define multiple symbolic variables. i.e. if input N=90, then I need to define 90 symbolic variables u1, u2, u3, ..... , u90

syms command does not work here, as I cannot specifically write each and every symbolic variable.

Please help.

Subject: MATLAB

From: Sean

Date: 25 Aug, 2010 16:45:21

Message: 2 of 3

"Nikita S" <nikita.setia1@gmail.com> wrote in message <i53glu$jre$1@fred.mathworks.com>...
> I need to define multiple symbolic variables. i.e. if input N=90, then I need to define 90 symbolic variables u1, u2, u3, ..... , u90
>
> syms command does not work here, as I cannot specifically write each and every symbolic variable.
>
> Please help.

See the FAQ:
http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F

Subject: MATLAB

From: Andy

Date: 25 Aug, 2010 16:46:05

Message: 3 of 3

"Nikita S" <nikita.setia1@gmail.com> wrote in message <i53glu$jre$1@fred.mathworks.com>...
> I need to define multiple symbolic variables. i.e. if input N=90, then I need to define 90 symbolic variables u1, u2, u3, ..... , u90
>
> syms command does not work here, as I cannot specifically write each and every symbolic variable.
>
> Please help.

http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us