请问如何将函数数据或​提取故障分量数据表示​为矩阵形式?。

例如x(t)=sint.数据窗20ms,采样频率4khz.将数据变为一个(N-L)*(L)矩阵。N=80,L=30.Y=[x(0) .............................................x(L-1)]
[ ]
[ x(N-L-1) .....................................x(N-2) ]
上面矩阵表示比较简陋,请见谅。

 Réponse acceptée

docep
docep le 18 Nov 2022

0 votes

看错了,囧。。。。不过,向量也可以看做是矩阵。
比较直接(苯)的方法就是写个循环赋值
t=0:1/4000:0.02;
x=sin(t);
N=80;
L=30;
for i=1:N-L
X(i,:)=x(i:i+L-1);
end

Plus de réponses (0)

Catégories

En savoir plus sur 语言基础知识 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!