Data Compression in Simulink (currently with a quadtree) / Variable-Size Matrix

1 次查看(过去 30 天)
I need to compress some data I simulated in Simulink. Also, the result of the compression needs to be accessible in simulink (in the same programm, so during the simulation).
I managed to compress the data (a huge matrix) with a quadtree. The calculation of it is done in a matlab function block and the quadtree is saved in one 1xn Array. The matrix has a lot of areas with the same values, so the quadtree only needs a small percentage of the original storage space. Since the layout of the quadtree depends on the actual values in the matrix, the size is variable. Simulink can not deal with a variable-size matrix as the output of the matlab function.
So does anyone has another idea to compress the data or to deal with the variable-size array? It doesn't have to be a quadtree.

采纳的回答

Harald
Harald 2023-7-7
编辑:Harald 2023-7-7
Hi,
Simulink supports variable size arrays as output of a MATLAB Function block. You need to click "Edit Data" in the upper left, select the output, expand "Advanced", and select the "Variable size" option.
You may also find this doc page helpful:
Best wishes,
Harald

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by