Calculate the size in bytes of a bus signal
11 views (last 30 days)
Show older comments
Eleni Tekki on 6 May 2022
Commented: dpb on 6 May 2022
I have a bus signal which contains data and i would like to calculate the total size of these data in bytes. Is there a way in simulink?
dpb on 6 May 2022
Write an S function if nothing else...with nothing else to go on, one would presume it's simply the numel() * data width.
Find more on Signal Attributes and Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!