How to code the Average monthly temperature? I'm newbie in matlab.. Please help me

8 views (last 30 days)

Accepted Answer

KSSV
KSSV on 27 May 2020
It looks like you have a data matrix of size 24X12 . Use mean to get the average. Read about the function mean. If A is your data matrix, use:
iwant = mean(A)
  5 Comments
KSSV
KSSV on 27 May 2020
You can remove that column/ element.
To remove first column:
A(:,1) =[] ;
To remove first element from array.
A(1) = [] ;

Sign in to comment.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!