spectrogra​mで発生するエラーに​ついて教えてください

spectrogramを用いて以下のドキュメントの処理を行う際にエラーが発生します.
N = 1024;
n = 0:N-1;
w0 = 2*pi/5;
x = sin(w0*n)+10*sin(2*w0*n);
s = spectrogram(x);
エラーメッセージは以下の通りです.
原因として何が考えられますか?
名前 'coder.gpu.internal.isGpuEnabled' を解決できません。
エラー: gencoswin (行 39)
if(coder.gpu.internal.isGpuEnabled)
エラー: hamming (行 25)
w = gencoswin('hamming',varargin{:});
エラー: signal.internal.spectral.welchparse>segment_info (行 307)
win = cast(hamming(L),'like',real(win1));
エラー: signal.internal.spectral.welchparse (行 34)
[L,noverlap,win] = segment_info(M,winp,noverlap1);
エラー: pspectrogram (行 30)
[xwp,nx,~,ywp,ny,winp,~,~,noverlap,~,~,options] = signal.internal.spectral.welchparse(x,esttype,inpArgs{:});
エラー: spectrogram (行 195)
[varargout{1:nargout}] = pspectrogram({x},'spect',inpArgs{:});

Réponses (1)

Akiko
Akiko le 30 Mai 2024

2 votes

こちらの手元では再現できないので、MATLAB 検索パスに問題がありそうです。
下記サイトで紹介されているパスの初期化を試してみていただけないでしょうか?

1 commentaire

Takeshi Kagimoto
Takeshi Kagimoto le 31 Mai 2024
解決しました.ありがとうございます.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange

Produits

Version

R2024a

Community Treasure Hunt

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

Start Hunting!