Band Error in idinput - Unrecognized function or variable 'u'.
6 views (last 30 days)
Show older comments
Bill Tubbs
on 31 Mar 2020
Answered: Mohammad Hussein Yoosefian Nooshabadi
on 21 May 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 Comments
Accepted Answer
Mohammad Hussein Yoosefian Nooshabadi
on 21 May 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 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!