for generation of 10 i nput in each sequence for a sinusoidal signal
조회 수: 1 (최근 30일)
이전 댓글 표시
for k=4:1000
x(k) = 1.05 * sin(pi*k/45);
x(k-3:k+10-4)
end
In the above question, if I want to generate a input sequence in a batch of 10 for each iteration . Then how can we implement it?
댓글 수: 0
답변 (1개)
VBBV
2023년 5월 21일
clearvars
% size or range of iteration
k = 4:1000;
x = 1.05 * sin(pi*k/45)
for J = 1:length(k)-9
X(J,:) = x(J:J+9);
end
% batch of 10 inputs per iteration
X
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!