Matlab的一些命令

总结一些或基本但常用,或经典的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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值