Can Matlab System Objects in Simulink support Symbolic Dimensions?

5 views (last 30 days)
I'm working on a complex system model that involves arrayed signals. However, as part of this system model has 2 key aspects that I'm looking to address:
  1. I would like to be able to sweep the array sizes as part of analysis of the system to determine what an appropriate size for the array would be; as a result Symbolic Dimensioning seems to be a very good candidate for this as it will allow me to use a single variable to determine the sizes of the array
  2. I am also implementing a custom, complex estimation algorithm which seems to fit best into a Matlab System Object (or at minimum a Matlab function); however both of those generate errors when I run the symbolically sized signals into them and I was wondering if there are ways around those initial warnings where I can have support for symbolic dimensioning and use those blocks.
  2 Comments
SACHIN KHANDELWAL
SACHIN KHANDELWAL on 29 Jul 2024
Could you please share the source code or the error/warning you are encountering ?
Daniel Humke
Daniel Humke on 29 Jul 2024
Error:An error occurred while propagating symbolic dimensions from '<model_path/block_path>', output port 1. To disable symbolic dimension propagation, clear 'Allow symbolic dimension specification' parameter in the Configuration Parameters dialog box.
Caused by:
'<model_path/block_path>' does not support symbolic dimensions propagation. To disable symbolic dimension propagation, search for 'Allow symbolic dimension specification' in the Configuration Parameters dialog box and clear the checkbox.
The error is also not super informative or completely correct, in that when I generated the above error, the signal with symbolic dimensioning is an input at port 6, and in fact outport 1 of this block is a scalar.

Sign in to comment.

Answers (1)

Himanshu
Himanshu on 6 Aug 2024
Hi,
I see that you are working on a complex system model in Simulink and want to use symbolic dimensions to sweep array sizes for analysis.
The error suggests that the block does not support symbolic dimensions propagation. Please refer to the following MATLAB Community post answered by the MathWorks Support Team which can help you determine which blocks support Symbolic Dimensions.
I hope this helps.

Categories

Find more on Interactive Model Editing in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!