I am trying to find the average of a 58 x 1000 matrix and the result should be a 58 X 48 matrix.

조회 수: 1 (최근 30일)
So, my data is already loaded on matlab and pre processed. My parameter are a time matrix (1 x 48) and temperature matrix which is 58 X 1000. I am trying to find the average of the 58 x1000 matrix with the account of the time matrix so that my temperature matrix comes out to be 58 X 48. Eventually, I want a plot of time (x-axis) vs. temp (y axis).
How can I find the average of my 58 X1000 so that the result matrix is 58 X 48?
  댓글 수: 2
Image Analyst
Image Analyst 2020년 6월 27일
What do the rows and columns of your temperature matrix represent? Which dimension is time? Do you want to average over all times?
Nafisa Raha
Nafisa Raha 2020년 7월 1일
My temperature matrix is a 3D matrix actually it is(1 X 58 X1000). 1 represents 'day 1', 58 rows represents 'different levels of height' the data is collected at and 1000 columns represent data points collected at each height. Then I have a time matrix which is 2D. I just want matlab to take average of tht temperature matrix over a time lapse of 30 min. So, that I end up with a 58 X 48 matrix... does that make sense?
Thank u !

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2020년 6월 27일
편집: madhan ravi 2020년 6월 27일
mean(...) along the rows of temperature matrix.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by