Home > Software engineering >  How can I use matlab diag command for ultidyn inputs?
How can I use matlab diag command for ultidyn inputs?

Time:11-11

Dears

I've try to define Diagonal Input Multiplicative Uncertainty using diag command but I got below error.

Check for missing argument or incorrect argument data type in call to function 'diag'.

Here is my code:

R=ultidyn('r');
S=ultidyn('s');
T=ultidyn('t');
DiagBlock= diag([R,S,T]);

Can anybody help me please?

CodePudding user response:

Dears

I've used below matrix instead of diag command and solve my problem.Maybe helpful for you.

DiagBlock= [R 0 0;0 S 0;0 0 T]

Best wishes

  • Related