線データを積み重ねてplot
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
綾一 栗原
am 27 Jun. 2024
Kommentiert: 綾一 栗原
am 2 Jul. 2024
STFTした強度周波数データを,手前から奥に積み重ねてplotしたいです
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1723981/image.png)
イメージとしてはこのような図です(pが振幅スペクトル,fが周波数,tが時間)
よろしくお願いします.
0 Kommentare
Akzeptierte Antwort
Atsushi Ueno
am 28 Jun. 2024
Bearbeitet: Atsushi Ueno
am 29 Jun. 2024
両者の違いはデフォルトの描画スタイルや戻り値のオブジェクトです。
強度周波数データ (1次元配列) を積み重ねて2次元配列 y にしてください。
[t,x] = meshgrid(-3:.125:3); % グリッド座標
y = abs(peaks(t,x)); % 高さデータ
mesh(t,x,y,'MeshStyle','column','FaceAlpha',0);
% MeshStyle: 表示するエッジ:'row':横線のみ,'column':縦線のみ, 'both':両方
% FaceAlpha: 透明度:0が透明、1が不透明、0<FaceAlpha<1が半透明
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 表面プロットとメッシュ プロット finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!