Why is nothing is being plotted when I run this?
5 ビュー (過去 30 日間)
古いコメントを表示
r = randn(1000, 1);
r_DCT = dct(r);
plot(r_DCT, 'o-')
3 件のコメント
Torsten
2025 年 3 月 28 日
編集済み: Torsten
2025 年 3 月 28 日
Do you know why it doesnt plot on MATLAB itself?
I can't see how MATLAB is configured on your computer. Don't you get an error message ? Maybe you don't have the Signal Processing Toolbox licenced and/or installed which is necessary for using "dct".
回答 (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!

