Adding InternalDelay for State Space system
显示 更早的评论
Say I have a closed loop feedback system sys without any delays, represented as a state space system. It was 2 inputs: reference and disturbance.
How can I add an InternalDelay after the feedback loop has been created?
I'd like to see the effect of disturbance rejection as a function of plant delay when using step(), after the feedback sys has been built.
I'm NOT trying to add an Input or Output delay, which would only delay the disturbance input or output reading of the result, but an internal delay that reduces the effectiveness of the loop.
Also, secondarily, it seems that perhaps delays need to be added after the loop is closed: If I add the delay to the plant, then when I create a closed-loop A feedback matrix to be used with ss(), the delays are (of course) not present when using eg plant.A -- so ss() won't have delays either. So convenience aside, it seems I'd need to add internal delays after the fact.
delayss() seems to be one option, but I'm unable to follow the documentation examples.
For example, say plant includes delays, and i make the C-L feedback matrix A_cl like so:
A_cl = [ plant.A, -plant.B * K;
L * plant.C, plant.A - plant.B * K - L * plant.C ]
A_cl will not include delays, since (of course), plant.N are just matrices without delays.
To add after the fact, I tried sys.InternalDelay:
Check original sys (build without delay), as expected it's empty:
>> sys.InternalDelay
ans =
0×1 empty double column vector
But when I try to add an internal delay, eg
sys.InternalDelay = ...
I get:
Error using ss/set.InternalDelay
When modifying the "InternalDelay" property, the number of delay entries must remain the
same.
Which seems to imply that i need to match an empty vector; how is that possible?
I'm looking at this documentation, but didn't find any clarification on adding internal delays after the system is constructed.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Classical Control Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!