How to Initailize MWStructArray
조회 수: 6 (최근 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!