Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Don't know how to fix

2 visualizaciones (últimos 30 días)
Boss Man
Boss Man el 24 de Dic. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
Walter Roberson
Walter Roberson el 24 de Dic. de 2019
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 el 25 de Dic. de 2019
Most recent 19b

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by