Can Matlab System Objects in Simulink support Symbolic Dimensions?

조회 수: 5 (최근 30일)
Daniel Humke
Daniel Humke 2024년 7월 24일
답변: Himanshu 2024년 8월 6일
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일
Could you please share the source code or the error/warning you are encountering ?
Daniel Humke
Daniel Humke 2024년 7월 29일
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일
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.

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by