
Matlab函数
文章平均质量分 64
Chen-Sh
好记性不如烂笔头
展开
-
Matlab 基本操作
1. 同目录下的文件路径添加,删除addpath('./foa_dev'); %添加rmpath('./foa_dev'); %删除2.语句太长,在句尾加上 ...%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%好记性不如烂笔头...原创 2019-12-17 20:46:44 · 267 阅读 · 0 评论 -
Matlab 之norm函数
Matlab函数norm有两种形式:1.n = norm(X)2.n = norm(X,p) ,p - 范数其中,n = norm(X) 与 n = norm(X,2)相同。a = [1 -1.2;2 3];n1 = norm(a);n2 = norm(a,2);n1 = 3.6383;n2 = 3.6383;p = 2 时,2范数的计算n = sqrt(ma...原创 2018-06-27 09:16:28 · 29658 阅读 · 0 评论 -
matlab中std函数用法
y=std(x) 算出x的标准偏差。 x可以是vector或者一个matrix矩阵。若x是vector,则y是算x的标准偏差。若x是matrix,则y是个vector,存放的是算每一列/行的标准偏差。 std (x, flag,dim)fla表示标注公差时是要除以n还是n-1flag==0.........是除以n-1flag==1.........是除以ndim表示维数di...转载 2018-07-03 17:44:48 · 16624 阅读 · 1 评论 -
MATLAB 之exist 函数说明
exist Check existence of variable, script, function, folder, or classexist(NAME) returns: 0 —namedoes not exist. 1 —nameis a variable in the workspace. 2 —nameis a file with exte...原创 2018-11-03 20:30:40 · 3465 阅读 · 0 评论 -
Matlab 之wavread,audioread,wavwrite,audiowrite函数
wavread - Read WAVE (.wav) sound file This MATLAB function loads a WAVE file specified by the string filename, returning the sampled data in y. y = wavread(filename) [y, Fs] = wavrea...原创 2018-11-04 09:16:56 · 17320 阅读 · 1 评论 -
MATLAB 函数之resample
resampleChange sampling rate by rational factorexpand all in pageSyntax用有理因子改变采样率y = resample(x,p,q)y = resample(x,p,q,n)y = resample(x,p,q,n,beta)y = resample(x,p,q,b)[y,b] = resample(x,p,q)...原创 2018-11-13 11:29:00 · 37276 阅读 · 2 评论 -
MATLAB 函数之 fir1,freqz
fir1Window-based finite impulse response filter design基于窗口的有限脉冲响应滤波器设计b = fir1(n,Wn)b = fir1(n,Wn,'ftype')b = fir1(n,Wn,window)b = fir1(n,Wn,'ftype',window)b = fir1(...,'normalization')fir...原创 2018-11-20 10:41:55 · 6336 阅读 · 0 评论