How to Initailize MWStructArray
1 回表示 (過去 30 日間)
古いコメントを表示
How do I initialize my MWStructArray with two fields and 5 elements.
0 件のコメント
採用された回答
Friedrich
2011 年 7 月 12 日
Hi,
#include "mclcppclass.h"
const char* fields[] = {"a", "b"};
mwArray my_struct(1, 5, 2, fields);
See doc for more:
4 件のコメント
Friedrich
2011 年 7 月 12 日
Maybe look at the phonebook example provided in the doc:
http://www.mathworks.com/help/releases/R2011a/toolbox/dotnetbuilder/ug/brl3b0g-1.html
(click on the PhoneBookApp.cs)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!