Why is nothing is being plotted when I run this?
조회 수: 3 (최근 30일)
이전 댓글 표시
r = randn(1000, 1);
r_DCT = dct(r);
plot(r_DCT, 'o-')
댓글 수: 3
답변 (1개)
Karanjot
2025년 4월 9일
Hi Liam,
This is the default behaviour for MATLAB scripts or '.m' files. If you want the figure to show up in line with the code, you can consider using a MATLAB live script instead.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!