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?

how to compute averge of columns

Asked by zain

zain (view profile)

on 25 Jan 2013

i have a matrix of for e.g (5,10) i want to compute average of every columns

0 Comments

zain

zain (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 25 Jan 2013
Accepted answer
Out=mean(x)

3 Comments

zain

zain (view profile)

on 25 Jan 2013

thanks buddy , can you please tell me what changes i have to make to get sum of every row ?

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

on 25 Jan 2013
mean(x,2)
zain

zain (view profile)

on 25 Jan 2013

got it thanks aloot :)

Azzi Abdelmalek

Azzi Abdelmalek (view profile)

Contact us