필터 지우기
필터 지우기

Function 'subsindex' is not defined for values of class 'phased.Ph​aseCodedWa​veform'.

조회 수: 1 (최근 30일)
I have received the following error
Function 'subsindex' is not defined for values of class 'phased.PhaseCodedWaveform'.
Error in Untitled6 (line 32)
bwrmss = bandwidth(h)/sqrt(12);
in my this part of whole code:
h = phased.PhaseCodedWaveform;
h.SampleRate = 100000000;
h.Code = 'Barker';
h.ChipWidth = 2e-08;
h.NumChips = 13;
h.PRF = 50000;
h.NumPulses = 1;
sig = h();
Nr = length(sig)
bwrmss = bandwidth(h)/sqrt(12);
rngrms = c/bwrmss;
It was working fine few hours ago. Then , i don't know what happened. After working on other codes, when i come back to this, this is now giving error.
Please help!

채택된 답변

Walter Roberson
Walter Roberson 2024년 1월 7일
You probably have accidentally named a variable bandwidth and that is interfering with using bandwidth as a function.
  댓글 수: 2
Basmah Ahmad
Basmah Ahmad 2024년 1월 8일
Sir, I will be glad if you answer my other following question as well
https://www.mathworks.com/matlabcentral/answers/2067566-how-do-i-generate-pulse-waveform-of-random-binary-sequence-in-matlab

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Phased Array System Toolbox에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by