how to plot pulse using for loop
显示 更早的评论
i have
clear all
clc
load rrsegB5.mat
for n = 1:length (rr)
b = rr{n};
x = b( :,1)
fs = 60;
t = 1:60;
subplot (2,1,1);
plot (t,x);
Y = fft(x,fs);
y = Y(1:fs/2);
p = abs (y);
f = (0:fs/2-1)*fs/fs;
subplot(2,1,2);
plot (f,p)
end
this data type is segmented, i want to plot this pulse continues, what should i fix?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!