How do I produce a graph of the slope of a group of data points?
古いコメントを表示
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 件のコメント
José-Luis
2014 年 6 月 12 日
Probably. People here would need more details to help you efficiently though.
Mark
2014 年 6 月 12 日
José-Luis
2014 年 6 月 12 日
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
2014 年 6 月 12 日
José-Luis
2014 年 6 月 12 日
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
2014 年 6 月 12 日
編集済み: Star Strider
2014 年 6 月 12 日
No data attached.
Use the ‘paperclip’ icon next to the ‘Help’ button.
Mark
2014 年 6 月 12 日
José-Luis
2014 年 6 月 12 日
doc xlsread
to import data from excel
Mark
2014 年 6 月 12 日
José-Luis
2014 年 6 月 12 日
What is the command you are using?
Mark
2014 年 6 月 12 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Timetables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!