Vector to Bus
Convert a vector of doubles into a (non-virtual) bus object. The input vector size must match the size of all the bus elements.
Unlike the built-in bus to vector block, the data type of the bus elements need not be consistent (input vector is cast to each elements data type). The top level bus may also contain nested nested buses, but arrays of buses are not supported.
As the S-Function contains simStruct macros that are not supported during code generation a TLC file is provided to inlines the S-Function during code generation.
Tested only on Linux (Ubuntu). Probably needs some changes to compile on Windows.
Build with:
>> mex('CFLAGS="$CFLAGS -std=c99 -Wall"','v2b_sf.c');
인용 양식
thomas (2024). Vector to Bus (https://github.com/thomas169/v2b), GitHub. 검색됨 .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!