Error While Propagating Size
Show older comments
I have made a Matlab function called ESC in a Simulink file. My input is a 4x1 vector and my output should also be a 4x1 vector. I get the following error:
Propagated size of data [output variable name] changed when propagating type. The size was fixed to be 'scalar' and now became '[4]'.
Specify the type of all inputs to avoid this error. Or, fully specify all inherited properties of your outputs.
I never specified that the output had to be a scalar... how do I fix this? I've never run into this problem before despite having very similar function blocks in Simulink files and I'm not sure what makes this case different.
Thanks in advance!
-JP
Accepted Answer
More Answers (1)
jose luis huayanay villar
on 7 Jul 2020
0 votes
El tamaño propagado de los datos 'D' cambió durante la propagación. El tamaño fue arreglado para ser 'escalar' y ahora se convirtió en '[1 3]'. Especifique el tamaño de todas las entradas para evitar este error. O bien, especifique completamente todas las propiedades heredadas de sus resultados.
Categories
Find more on Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!