Borrar filtros
Borrar filtros

Subsystem can not reference partitioned mask parameter

8 visualizaciones (últimos 30 días)
Devyani Varshney
Devyani Varshney el 25 de Sept. de 2023
Comentada: Devyani Varshney el 1 de Nov. de 2023
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 comentarios
hugo jageschwo
hugo jageschwo el 1 de Nov. de 2023
I have the same problem.
Devyani Varshney
Devyani Varshney el 1 de Nov. de 2023
yeah, I finally converted those masked parameters as seperate inputs. There is no way around.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by