필터 지우기
필터 지우기

unrecognized function or variable

조회 수: 2 (최근 30일)
Manasi Dandekar
Manasi Dandekar 2021년 5월 28일
댓글: Mahesh Taparia 2021년 5월 31일
Hi Everyone,
i have the error "Unrecognized function or variable 'iN',
I don't know how to fix this problem. Thank you in advance for your help
code:
function [P]=simRangeData(N,iN,S,iS)
pwrSig=10.^(S/10);
pwrNoise=10.^(N/10);
nRangeGate=iN(end);
voltNoise_I=zeros(nRangeGate,1);
voltNoise_Q=zeros(nRangeGate,1);
I=length(iN);
iLead=1;
for i=1:I
iLag=iN(i);
voltNoise_I(iLead:iLag)=sqrt(pwrNoise(i)/2)*randn(iLag-iLead+1,1);
voltNoise_Q(iLead:iLag)=sqrt(pwrNoise(i)/2)*randn(iLag-iLead+1,1);
iLead=iLag;
end
noise=voltNoise_I+j*voltNoise_Q;
signal=zeros(size(noise));
I=length(iS);
for i=1:I
pwrSwerling=exprnd(pwrSig(i),1,1);
signal(iS(i))=sqrt(pwrSwerling/2)+j*sqrt(pwrSwerling/2);
end
data=signal+noise;
P=abs(data).^2;
  댓글 수: 2
Adam Danz
Adam Danz 2021년 5월 28일
Always provide the entire error message and tell us how you're calling your function.
Mahesh Taparia
Mahesh Taparia 2021년 5월 31일
Hi
As stated by Adam, do provide the complete function and the code where you are calling this function.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by