您的位置:首页 > 编程语言 > MATLAB

MATLAB 画Line _Plot 2D

2017-02-07 11:10 351 查看
% Load data for the stock indices

load IndexData dates values series

% Plot the stock index values versus time

figure

plot(dates, values)

% Use dateticks for the x axis

datetick(‘x’)

% Add title and axis labels

xlabel(‘Date’)

ylabel(‘Index Value’)

title(‘Relative Daily Index Closings’)

% Add a legend in the top, left corner

legend(series, ‘Location’, ‘NorthWest’)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  matlab