Function 'subsindex' is not defined for values of class 'phased.PhaseCodedWaveform'.
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!
0 个评论
采纳的回答
Walter Roberson
2024-1-7
You probably have accidentally named a variable bandwidth and that is interfering with using bandwidth as a function.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Third-Party Cluster Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!