Plotting data as a function of time
显示 更早的评论
I'm just trying to understand plotting prices as a function of time, if I have price data of prices in a column, say x=[1;2;3;4;5;6;7;8;9;13;14;15] and creating a time axis of integers from 1 to the number of days so 1:length of the first colum am I correcting in the definition of plotting the prices as a function of time by.
numberofdays=size(x,1)
plot(1:numberdays,x(:,1)) %equivalent to plot(t,y) where x(:,1) are the first column price values
2 个评论
Stephan
2019-10-13
you are right, whats the question?
jacob Mitch
2019-10-14
编辑:jacob Mitch
2019-10-14
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Financial Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!