Can Matlab System Objects in Simulink support Symbolic Dimensions?

35 次查看(过去 30 天)
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 个评论
SACHIN KHANDELWAL
SACHIN KHANDELWAL 2024-7-29,6:54
Could you please share the source code or the error/warning you are encountering ?
Daniel Humke
Daniel Humke 2024-7-29,12:25
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.

请先登录,再进行评论。

回答(1 个)

Himanshu
Himanshu 2024-8-6,6:55
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.

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by