MATLAB: How to design an Uncertain State Space block (more) in Simulink with two values varying

Robust Control Toolboxsimulink

My transfer function is: g(s)=(5.6±7.1)/((9.3±0.5)*s+1), with the gain (k) and time constant (tau) varying in the expression.
I am struggling to have these varying numbers within my simulation. I have yet to perform any type of linearization or optimization yet in my process control course.
Thank you

Best Answer

1.
tau=ureal('tau',9.3);
tau.PlusMinus=[-0.5 0.5];
k=ureal('k',5.6);
k.PlusMinus=[-7.1 7.1];
sys=k*tf(1/tau,[1 1/tau]);
2.
HTH
Related Question