Band Error in idinput - Unrecognized function or variable 'u'.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bill Tubbs
le 31 Mar 2020
Réponse apportée : Mohammad Hussein Yoosefian Nooshabadi
le 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 commentaires
Réponse acceptée
Mohammad Hussein Yoosefian Nooshabadi
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with Control System Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!