Error while importing signal data to signal builder
2 次查看(过去 30 天)
显示 更早的评论
I have a Simulink model. I run the model and save output data from my model to workspace, save that data to a .mat file and import that data to a signal builder in another model. When I try to run the new model with the signal builder, I get an error:
"Error in [my model/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."
How do I solve this problem? I am using MATLAB R2017a.
回答(1 个)
Aniket
2025-5-7
This error occurs because the data saved in the Dataset has fixed-point data type. To remove this error in R2017a, please convert the signals to doubles before logging.
The error should not occur in R2017b with the same fixed-point Dataset.
Hope this helps!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!