Error using plot ; spectrum of function
조회 수: 1 (최근 30일)
이전 댓글 표시
Why I get error using the following code?
syms t w;
syms g h;
g=fourier(exp(-1*(t^2)));
h=abs(g);
w=-10.1:10.1;
plot(w,h);
댓글 수: 0
채택된 답변
Walter Roberson
2017년 11월 1일
plot(w, subs(h))
댓글 수: 3
Walter Roberson
2017년 11월 1일
Worked fine when I tried on the code you posted.
If you have other code for calculating spectra then you should probably post that so we do not have to guess about what might not be working.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!