Band Error in idinput - Unrecognized function or variable 'u'.
2 次查看(过去 30 天)
显示 更早的评论
Bill Tubbs
2020-3-31
回答: Mohammad Hussein Yoosefian Nooshabadi
2020-5-21
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 个评论
采纳的回答
Mohammad Hussein Yoosefian Nooshabadi
2020-5-21
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Control System Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!