subscript that is out of range?

I tried to simulate matrix equations with simulink but "subscript is out of range" error display. Anyone pls fix it.
attachment : simulink file

 Respuesta aceptada

stozaki
stozaki el 19 de Sept. de 2020

0 votos

Hello Rajeev,
The variable "P" is undefined in your Fcn block.
Define the value of the variable "P".
Regards,
stozaki

2 comentarios

Rajeev Kumar
Rajeev Kumar el 21 de Sept. de 2020
I defined the P variable but same error displayed again.
stozaki
stozaki el 21 de Sept. de 2020
Hi,
Is it the same error? Isn't it a different error message?
I seem to have the wrong number of elements in your Fcn block. Since the output of the Demux block is scalar, I don't think u (2) or u (3) can be used.
I think the input of the Fcn block can remain a vector. I have attached a reference example.
stozaki

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Productos

Versión

R2015b

Preguntada:

el 18 de Sept. de 2020

Comentada:

el 21 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by