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 reduce a matrix

Subject: How to reduce a matrix

From: Diego Zegarra

Date: 1 Mar, 2009 19:17:16

Message: 1 of 2

Hey guys,

If I have a matrix,

M = [
3 2 4;
6 5 4;
4 1 3;
7 8 3]

and I wish to create a new matrix where only the rows where a certain number in the third column is, so assume I need a matrix where the third column number is a 4, I would create a matrix of 2x3 consisting of the first two rows, and similar if the number is a 3 then create it with the lower 2 rows.

Thanks!

Subject: How to reduce a matrix

From: Diego Zegarra

Date: 1 Mar, 2009 19:22:01

Message: 2 of 2

Nevermind guys, I just saw this question and answer posted seconds ago!

Thanks anyway!

Tags for this Thread

No tags are associated with 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