
How can I get the data size/length from a signal in Simulink?
2 次查看(过去 30 天)
显示 更早的评论
I'm currently trying to get the size/length of data from a signal in Simulink. I've already tried the Probe Block, but this only gave me the width of the signal. I'm trying to determine whether I've got 'single' or 'double' data on the signal. This should give me either 4 or 8 as the size/length based on the number of bytes.
0 个评论
回答(1 个)
Dimitris Kalogiros
2018-7-18
Hi Tim
Try Display -> Sihnals & Ports -> Port Data Types

This forces simulink to show up the data type of block's ports
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!