Error "gausswin requires Signal Processing Tool"

조회 수: 17 (최근 30일)
Alejandra
Alejandra 2024년 11월 18일
댓글: Sadheedha 2025년 2월 14일
I have an issue while using the command "Stamps (2,2)". Could you please help me with this problem? Here's what happens:
gausswin requires Signal Processing Toolbox.
Error in clap filt (line 47)
B=gausswin(7) *gausswin(7) ' ;
Error in ps est gamma quick (line 225)
ph_filt(:,:,i)=clap_filt(ph_grid(:,:,i),clap_alpha, clap_beta,n_win*0.75,n_win*0.25,
Error in stamps (line 326)
ps_est_gamma_quick (est_gamma_parm);
  댓글 수: 2
Mathieu NOE
Mathieu NOE 2024년 11월 18일
hello
as the error message tells you you probably don't have access to the Signal Processing Tbx (could be useful if you work a lot with signals , BTW)
a simple workaround is to create you own gaussian window function as shown below
NB , as I was very lazzy , I didn't used the "alpha" in the parameters but you can easily change my code if you need :
N = 7;
w = gauss_window(N);
plot(w)
function w = gauss_window(N)
L = N-1;
n = (0:L)'-L/2;
alpha = 2.5; % Default value for Alpha
w = exp(-(1/2)*(alpha*n/(L/2)).^2);
end
Mathieu NOE
Mathieu NOE 2024년 11월 29일
Problem solved ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Steven Lord
Steven Lord 2024년 11월 18일
The gausswin function is part of Signal Processing Toolbox. Do you have this toolbox installed and licensed? To check if you have it installed use the ver function.
ver signal
------------------------------------------------------------------------------------------------- MATLAB Version: 24.2.0.2790852 (R2024b) Update 2 MATLAB License Number: 40912989 Operating System: Linux 5.15.0-1062-aws #68~20.04.1-Ubuntu SMP Wed May 1 15:24:09 UTC 2024 x86_64 Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------- Signal Processing Toolbox Version 24.2 (R2024b)
To check if you have it licensed, use license.
license test signal_toolbox
ans = 1
  댓글 수: 1
Sadheedha
Sadheedha 2025년 2월 14일
Same problem I am also facing. I have license, but it is showing as 0. Could not use findpeaks ? :(

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by