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:
How to express system of equations in more than one row

Subject: How to express system of equations in more than one row

From: Milos Milenkovic

Date: 17 Feb, 2013 10:49:12

Message: 1 of 3

Dear,
I want to express system of equations in many lines (large system), each equation in one row, but expression in which equations are separated only by coma is not correct:
syms x y z
S=solve(x+y==1,
x-11*y,
y+3*z==21)
S=[S.x S.y S.z]

How to write the system of equations in multiple lines?

Thanks,
M

Subject: How to express system of equations in more than one row

From: Sadik

Date: 17 Feb, 2013 19:48:06

Message: 2 of 3

Hi Milos,

Perhaps you can use three dots after each comma.

solve(eqn1, ...
eqn2, ...
eqn3);

Best.

Subject: How to express system of equations in more than one row

From: Milos Milenkovic

Date: 18 Feb, 2013 07:17:21

Message: 3 of 3

Thank you Sadik!


"Sadik " <sadik.hava@gmail.com> wrote in message <kfrc5m$sgv$1@newscl01ah.mathworks.com>...
> Hi Milos,
>
> Perhaps you can use three dots after each comma.
>
> solve(eqn1, ...
> eqn2, ...
> eqn3);
>
> Best.

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