필터 지우기
필터 지우기

Calculate daily data using equation

조회 수: 1 (최근 30일)
Phat Pumchawsaun
Phat Pumchawsaun 2017년 1월 28일
답변: Walter Roberson 2017년 1월 28일
Hi, I am just beginner for using Matlab. I have 2 matics as followings;
A = [col1]=Year, [col2]=Month, [col3]=Day, [col4]=Data1, [col5]=Data2, with dimension 365x5
B = [col1]=Month, [col2]=Coeff1, [col3]=Coeff2, with dimension 12x3
I would like make the equation using loop function to calculate mean monthly data daily by using data from A multiplied by coefficient value in matric B (data1 x coeff1 and data2 x coeff2). But I got some problem because data in B is monthly value and data in A is daily value. Is there anyone can help me about this matter?
  댓글 수: 1
Star Strider
Star Strider 2017년 1월 28일
Use the save function to save your matrices as a ‘.mat’ file, then use the ‘paperclip’ icon to upload them here.
We cannot help you write the code without being able to work with your data.

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 1월 28일
If you have R2016b or later, consider using a timetable and retime()

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by