pspectrum関​数の結果を指定した座​標軸に結果をプロット

Matlab GUIにてアプリを作成しています。pspectrum関数では出力引数を設定せずに使用すると現在のFigureに結果がプロットされます。
この時の結果を指定した座標軸に出力させるにはどうすればよろしいでしょうか。

 Respuesta aceptada

takemoto
takemoto el 15 de Oct. de 2020

0 votos

愚直な方法にはなりますが、以下のドキュメントにもあるとおり、一度変数に格納してから描画する、という方法でいかがでしょうか。
[p,f] = pspectrum(x);
plot(f/pi,abs(p))

1 comentario

takashi kanda
takashi kanda el 16 de Oct. de 2020
試してみたいと思います。
ご回答ありがとうございました。

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 14 de Oct. de 2020

Comentada:

el 16 de Oct. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!