How to tell if an object is an Uncertain state-space (USS) model?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a function that is overloaded, and takes both standard state space, and uncertain (uss) state space as inputs.
Since c2d() doesn't work for uss, i need to do a different process depending on which type I pass in.
How can I tell programatically if an object is an Uncertain state-space (USS) model, vs a normal state space model?
I tried isempty(), isfield(), etc, but none of these commands are accepted on both uss and normal state space objects.
댓글 수: 0
채택된 답변
Paul
2023년 4월 25일
Hi @John
Also, there is a function isStateSpace that can handle the other part, though it might be undocumented.
p = ureal('p',1);
usys = tf(p,[1 p]);
usys
isuncertain(usys)
isStateSpace(usys)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Monte Carlo Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!