Simulink is giving error in the case I use If statement in simulink matlab function block.

1 visualización (últimos 30 días)
Hello,
I have to use 3 different if statements in Matlab Function block in Simulink. When I run the simulation, it gives an error and refuse to run data of 'double' type in Matlab Function block. I tried to find the required data type for this case but, unfortunately, I coudn't find the answer. So I tried to change data type randomly using 'convert' block. This couldn't solve the problem. May you help me?
Note: There is no errors when I use Matlab Function block with no if statements.

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by