how to plot the signal with timesteps
조회 수: 1 (최근 30일)
이전 댓글 표시
i have a signal value, of dimension 400 x 1.... how to plot the signal with timesteps of 7 microseconds....
댓글 수: 0
채택된 답변
KSSV
2017년 3월 6일
N = 400 ;
signal = rand(N,1) ; % a random signal
dt = 10^-6 ; % time step
t = zeros(N,1) ; % initilaize time
t(1) = 0 ; % intial time = 0
% generate time
for i = 2:N
t(i) = t(i-1)+dt ;
end
plot(t,signal)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!