필터 지우기
필터 지우기

Subsystem can not reference partitioned mask parameter

조회 수: 8 (최근 30일)
Devyani Varshney
Devyani Varshney 2023년 9월 25일
댓글: Devyani Varshney 2023년 11월 1일
I am trying to partition mask parameters for each subsystem block, however keep getting the following error while developing the C code:
Parameter 'a1' of block 'blankSystry/inputtry/Subsystem' cannot reference partitioned mask parameter 'i' of For Each subsystem 'blankSystry/inputtry' because parameter 'a1' will be reduced to a numerical value.
Caused by:
  • The generated code will inline the numeric value of the expression 'a(i,1)' (used in parameter 'a1' of 'blankSystry/inputtry/Subsystem') because the expression is either referencing an element of a variable which is a mask parameter or has two or more dimensions, or is referencing an element of a one-dimensional variable using multiple indices. This expression resolves to tunable variables (i).
  댓글 수: 2
hugo jageschwo
hugo jageschwo 2023년 11월 1일
I have the same problem.
Devyani Varshney
Devyani Varshney 2023년 11월 1일
yeah, I finally converted those masked parameters as seperate inputs. There is no way around.

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

답변 (0개)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by