how to fix the array?
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
VBBV
2021년 11월 7일
% x is the 1*476 array and t is also a 1*476 array meaning time
f_up = 100;
x= rand(1,476);
t = x;
f = (-f_up:0.1:f_up);
w = 2*pi*f;
for i = 1:length(w)
Xjw(:,i) = trapz(t, x.*exp(-j.*w(i).*t));
end
plot(Xjw)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!