How do I produce a graph of the slope of a group of data points?
Afficher commentaires plus anciens
I am currently working with a set of historical price points, and I am looking to graph the slope of the changes over time. The data, however, is too erratic to create an effective best fit curve. I am fairly unfamiliar with Matlab. Is there a way to do this effectively?
11 commentaires
José-Luis
le 12 Juin 2014
Probably. People here would need more details to help you efficiently though.
Mark
le 12 Juin 2014
José-Luis
le 12 Juin 2014
No worries. You could always post your data here and see if people are willing to help. However, the best way to get help is to show some effort yourself. Please show what you have tried and ask specific questions.
If there was an easy way to simulate price changes over time, there would be a lot of millionaires around here.
Mark
le 12 Juin 2014
José-Luis
le 12 Juin 2014
To plot the slope:
plot(diff(your_data))
Since you are just starting with Matlab, I strongly recommend you to read the "Getting started" part of the documentation.
Star Strider
le 12 Juin 2014
Modifié(e) : Star Strider
le 12 Juin 2014
No data attached.
Use the ‘paperclip’ icon next to the ‘Help’ button.
Mark
le 12 Juin 2014
José-Luis
le 12 Juin 2014
doc xlsread
to import data from excel
Mark
le 12 Juin 2014
José-Luis
le 12 Juin 2014
What is the command you are using?
Mark
le 12 Juin 2014
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!