Clear Filters
Clear Filters

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

7 views (last 30 days)
Takeshi Kagimoto
Takeshi Kagimoto on 30 May 2024
Commented: Takeshi Kagimoto on 31 May 2024
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{:});

Answers (1)

Akiko
Akiko on 30 May 2024
こちらの手元では再現できないので、MATLAB 検索パスに問題がありそうです。
下記サイトで紹介されているパスの初期化を試してみていただけないでしょうか?
  1 Comment
Takeshi Kagimoto
Takeshi Kagimoto on 31 May 2024
解決しました.ありがとうございます.

Sign in to comment.

Categories

Find more on ビッグ データの処理 in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!