필터 지우기
필터 지우기

"Dimension argument is not supported when two input arrays are provided" error in stateflow

조회 수: 32 (최근 30일)
Hello.
I found some error while I running the stateflow.
what I want to do is explained below.
  1. get the voltage information from each batteries (3 batteries in simulink)
  2. if average value of 3 batteries voltage is bigger than minimum value of 3 batteries voltage,
  3. transit to the other state.
But it give some error like this.
I tried this way also.
then I got this error.
I was wondering if you help me about these errors.
  1. Dimension argument is not supported when two input arrays are provided
  2. Error in port widths or dimensions. Invalid dimension has been specified for input 'v1'.
Thank you.

채택된 답변

Kyoungtak Kim
Kyoungtak Kim 2020년 6월 27일
Oh my mistake was "min syntax"
After I change from min(v1,v2,v3) to min([v1 v2 v3]), problem solved.

추가 답변 (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