MATLAB Answers

Band Error in idinput - Unrecognized function or variable 'u'.

8 views (last 30 days)
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)

Accepted Answer

Mohammad Hussein Yoosefian
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.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!