Can MATLAB Fcn block output a bus?
2 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to use MATLAB Fcn block to output a bus. I can't use an Embedded MATLAB Fcn block for reasons that I would rather not get into now.
Does anyone knows how to do this?
1 件のコメント
Arnaud Miege
2011 年 2 月 4 日
I don't know your reasons for not wanting to use an Embedded MATLAB function block, but that would be my recommendation. It can output a bus and because it uses code generation, is very efficient. A MATLAB Fcn block, on the other hand, calls the MATLAB parser during each integration step and therefore is very inefficient. I would avoid using it if at all possible.
採用された回答
Davide Ferraro
2011 年 2 月 4 日
The MATLAB function block is not able to create a bus.
We strongly suggest the use of the Embedded MATLAB function that allows better performances and code flexibility. If you can express your doubts regarding the use of the Embedded MATLAB function we may provide you further assistance.
Are you aware of the eml.extrinsic command? http://www.mathworks.com/access/helpdesk/help/toolbox/eml/ref/eml.extrinsic.html
This command allows you to use any function (not necessarily from Embedded MATLAB subset). This reduces the performance (and is not working for code generation) but allows you to use all MATLAB features.
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で String についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!