Why do I get an "Initialization commands cannot be evaluated" error upon model update with the Signal Builder block in R2016b?

Using a Signal Builder block in R2016b, I am able to import signals from a MAT-file which stores a Dataset logged after simulation. However, when I update the model (Ctrl+D), I get the following error:
Error in 'signalBuilderEx/Signal Builder': Initialization commands cannot be evaluated.
Caused by:
In an assignment A(:) = B, the number of elements in A and B must be the same.
What is the reason for this error?

 Respuesta aceptada

This error occurs because the data saved in the Dataset has fixed-point data type. To remove this error in R2016b, please convert the signals to doubles before logging.
The error should not occur in R2017b with the same fixed-point Dataset.

Más respuestas (0)

Productos

Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by