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

例如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) ]
上面矩阵表示比较简陋,请见谅。

 Risposta accettata

docep
docep il 18 Nov 2022

0 voti

看错了,囧。。。。不过,向量也可以看做是矩阵。
比较直接(苯)的方法就是写个循环赋值
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

Più risposte (0)

Categorie

Scopri di più su 语言基础知识 in Centro assistenza e File Exchange

Tag

Richiesto:

il 18 Nov 2022

Risposto:

il 18 Nov 2022

Community Treasure Hunt

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

Start Hunting!