trend line plotting question

Good evening...i have plotting a graph in GUI by loading the data from an excel file! Then, how should i do if i want to add a linear and polynomial trend line in the same axes?
regard chin nyuk eng

 Respuesta aceptada

Fred
Fred el 3 de Abr. de 2011

0 votos

In GUI after you plot your data, you can drag down "Tools", there is a menu called "Basic Fitting".

Más respuestas (2)

chin Eng
chin Eng el 3 de Abr. de 2011

0 votos

ya..i know that method. But, is that possible for not using that "tools". I just want to plot a trend line by a click in GUI..you get my question?

2 comentarios

John D'Errico
John D'Errico el 3 de Abr. de 2011
Even better, I just want to think about what I want to do, and have the computer know exactly what I intended. Why bother wasting the effort of clicking a mouse? On second thought, why involve me at all? Why not have the computer automatically decide what it is I would have wanted to do, were I actually to do anything, and do it all for me while I sleep?
Samuel
Samuel el 6 de Jul. de 2012
Some of us prefer code, especially when we need to apply the same code to 10's, if not 100's of files and need the trendlines for all of them. It is very time consuming to have to do that for every file.

Iniciar sesión para comentar.

Chad Greene
Chad Greene el 25 de Mzo. de 2021

0 votos

I've written a simple function called polyplot to add a linear trend line to plots. Get it on the File Exchange here.

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Abr. de 2011

Editada:

el 25 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by