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에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!