필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Don't know how to fix

조회 수: 1 (최근 30일)
Boss Man
Boss Man 2019년 12월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
outdoorapr = xlsread('outdoorapr.xlsx','D2:D8586');
indoorapr=xlsread('indoorapr.xlsx','D2:D8586');
time=xlsread('time.xlsx','C2:C8586')
a=(outdoorapr);
b=(indoorapr);
t=time;
dt=diff(a)/5;
c=dt./(b(1:end-1)-a(1:end-1));%diff(a) will be one less than matrix a and b
plot(t,c);
when computing the time, i receive an empty matrix, attached are the files used, range for each of them is mentioned above. the graph produced doesnt have the time on the x axis and produces a strange curve. dont know where ive gone wrong
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 12월 24일
column C in time.xlsx is a macro; the actual times are stored in column B . That might make a difference in the reading.
I recommend that you switch to readtable() instead of xlsread() .
Which MATLAB release are you using?
Boss Man
Boss Man 2019년 12월 25일
Most recent 19b

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by