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

New to MATLAB?

Thread Subject:
elements in matrix

Subject: elements in matrix

From: areeba khan

Date: 14 Oct, 2011 17:34:28

Message: 1 of 1

how can i get the the mean of the elements of individual rows in a matrix?
say i have a 5x5 matrix, i need to have 5 means for 5 rows? i tried to do it using the sum command i.e. talking the sum of the elements and diving it by the total number of rows but the sum command returns the sum of all rows in a single row. similarly i can not use the mean function for the same reason. is there any command or function for the mentioned task?

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