Why is nothing is being plotted when I run this?
4 次查看(过去 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!