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

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

 采纳的回答

docep
docep 2022-11-18

0 个投票

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

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 语言基础知识 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!