没有合适的资源?快使用搜索试试~ 我知道了~
Basics of Plotting in Matlab Matlab 绘图基础知识.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 184 浏览量
2024-04-04
14:55:21
上传
评论
收藏 283KB PDF 举报
温馨提示
试读
5页
Basics of Plotting in Matlab Matlab 绘图基础知识.pdf
资源推荐
资源详情
资源评论
Plotting in Matlab
Page 1
Basics of Plotting in Matlab
GSF 3/22/12
Table of Contents
• Basic Overview
o Syntax
o Labeling Axes
o Legends
• Manipulating Axes
• Subplots
• Multiple Y-Axes
• Statistics
• 3-D plots
• Additional Resources
Basic Overview
To use the ‘plot’ function in Matlab, you should first make sure that the matrices/vectors
you are trying to use are of equal dimensions. For example, if I wanted to plot vector X = [3 9
27] over time, my vector for time would also need to be a 1x3 vector (i.e. t = [1 2 3]).
• Syntax
To plot the example vectors above in a new figure:
clear all % clear all previous variables
X = [3 9 27]; % my dependent vector of interest
t = [1 2 3]; % my independent vector
figure % create new figure
plot(t, X)
• Labeling Axes
To give the above figure a title and axis labels:
title(‘Plot of Distance over Time’) % title
ylabel(‘Distance (m)’) % label for y axis
xlabel(‘Time (s)’) % label for x axis
资源评论
百态老人
- 粉丝: 2561
- 资源: 2万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功