이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Why do i keep getting this error???
조회 수: 1 (최근 30일)
so heres the data file
outdoor = xlsread('outdoorall.xlsx','G2:H52364');
dt=diff(b(:,2))/0.00138889; % difference in indoor temp divided by time in hrs(=5secs)
c=dt./(b(2:end,2)-a(2:end,2));%diff(a) will be one less than matrix a and b
I get an error that the vectors dont match up. I asked my supervisor this and he said to take a look at diff. I didn't understand as I'm not too good at matlab. I've quoted the time, temperatures correctly.
Spencer Chen 2020년 1월 28일
It's hard to determine the exact problem with the information you have provided. It would be much better if you had copy and pasted the error message.
My guess is that your code fails at
Because your time vector size is different to your c vector.