필터 지우기
필터 지우기

Multidimensional array in stateflow

조회 수: 1 (최근 30일)
Fahad Mirza
Fahad Mirza 2014년 3월 31일
댓글: Andre Pfeiffer 2015년 6월 8일
Is it possible to use three or more dimensional array variable in stateflow? For example, I am using a Matlab function by using "Matlab Function" box in stateflow. One of the argument of this function is three dimension (e.g. P). When I call this function from Matlab Workspace by using ml.myFubc(), it takes that three dimension array as argument. But when I try the same code within stateflow Matlab box, it gives errors. Like for a line:
if(x'*P(1:4,1:4,2)*x > 1)
It says (for P): Index expression out of bounds. Attempted to access element 2. The valid range is 1-1.
How can I use three dimension variable in stateflow?
  댓글 수: 2
Joachim Schlosser
Joachim Schlosser 2014년 8월 19일
Could you please upload your model?
Andre Pfeiffer
Andre Pfeiffer 2015년 6월 8일
Hello Mr. Schlosser
I do have a similiar issue. I am not able to catch a part of the array during simulation time. Maybe the example attached can make clear, what I am trying to do.
Thanks for help in advance!!!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by