Band Error in idinput - Unrecognized function or variable 'u'.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bill Tubbs
am 31 Mär. 2020
Beantwortet: Mohammad Hussein Yoosefian Nooshabadi
am 21 Mai 2020
I was playing around with the Band argument for idinput and got this error.
>> Range = [-1,1];
>> Band = [0 2];
>> u_signal = idinput(10,'prbs',Band,Range);
Warning: The PRBS signal delivered is the 10 first values of a full sequence of length 0.
> In ctrlMsgUtils.warning (line 25)
In idinput (line 176)
Unrecognized function or variable 'u'.
Error in idinput (line 253)
u = (levels(2)-levels(1))*(u+1)/2+levels(1);
Anyone know what is causing it? Is it a bug or am I doing something wrong?
It only seems to occur if the second element of Band is >1.
>> Range = [-1,1];
>> Band = [0 1];
>> u_signal = idinput(10,'prbs',Band,Range);
Warning: The PRBS signal delivered is the 10 first values of a full sequence of length 15.
> In ctrlMsgUtils.warning (line 25)
In idinput (line 176)
0 Kommentare
Akzeptierte Antwort
Mohammad Hussein Yoosefian Nooshabadi
am 21 Mai 2020
Hello there,
The error you encountered is because Matlab was not able to generate the PRBS signal and so it dos not recognize the varaible u. for further information see "BAND" section in link below:
Good luck.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Preparation Basics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!