How to Initailize MWStructArray
11 次查看(过去 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!