Borrar filtros
Borrar filtros

Error: Data 'regionDemand' (#28) is inferred as a variable size matrix, while its specified type is something else.

1 visualización (últimos 30 días)
Hi,
I have specified the regionDemand matrix size within my matlab function block editor in simulink (user-defined function):
regionDemand = zeros(1,clusterCount);
where the value of clusterCount is obtained as an input into the function.
However, simulation of the code generated the error: Data 'regionDemand' (#28) is inferred as a variable size matrix, while its specified type is something else.
May I know how do I go about solving this? This is my first time using Simulink and there are many things which I have never come across before. Thanks a lot for helping!

Respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by