总结一些或基本但常用,或经典的Matlab命令,逐渐更。
Matlab自带的命令更详细介绍均可以通过help命令查看。
1. 实现向量的转置:
a=[1 2 3];
b=a'
a=[1 2 3]
b=a(:)
以上两种方式均实现向量a的转置,输出的向量b均为:
b =
1
2
3
2. 求包络命令:
envelope
3. 绘图
1) gcf %获取当前图形窗口的句柄(Get handle to current figure.)。
H = gcf returns the handle of the current figure. The current
figure is the window into which graphics commands like PLOT,
TITLE, SURF, etc. will draw.
gca %获取当前窗口当前坐标轴的句柄
gco %获取当前窗口当前对象的句柄
4.displays the full path for item
which item
5.获取坐标轴最值
V = axis % returns a row vector containing the scaling for the
current plot. If the current view is 2-D, V has four
components; if it is 3-D, V has six components.