If I want to find out whether or not there is a significant non-zero trend in these data, would I use the regress(y,X) function? Here's an example of what I'm doing:
if true
% code
end
load Tmks.txt
time = Tmks (:,1);
suhu = Tmks (:,2);
alfa= 0.05;
[b,bint,r,rint,stats] =regress (time,suhu,alfa);
X = ones (size(time));
[b,bint,r,rint,stats] =regress (time,suhu,alfa);
how to get the significant trend ? thank you
-odah-

 Respuesta aceptada

Brendan Hamm
Brendan Hamm el 22 de Sept. de 2017

0 votos

If you are using a version equal to or later than 2013b than you can use the fitlm function which prints the relevant t-statistics.

1 comentario

Raodah Jabir
Raodah Jabir el 22 de Sept. de 2017
can you give me an example Brendan Hamm???

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Sept. de 2017

Comentada:

el 22 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by