how to plot pulse using for loop
Show older comments
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?
Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!