Array formation and indexing are not allowed on .NET objects.

조회 수: 9 (최근 30일)
Hannes H.
Hannes H. 2018년 3월 20일
답변: Divyabharathi V 2019년 7월 26일
I have a .NET dictionary in Matlab and I want to do this:
disp([moduleConfiguration.Parameters.Item('One'), ':', moduleConfiguration.Parameters.Item('Two')]);
but I'm getting this error message:
Array formation and indexing are not allowed on .NET objects.
I'm running out of ideas because this one is working:
disp(['One', ':', 'Two']);
Hope anyone could help me!
Thanks!

답변 (1개)

Divyabharathi V
Divyabharathi V 2019년 7월 26일
Please try this ,
disp(System.String.Concat(moduleConfiguration.Parameters.Item('One'), ':', moduleConfiguration.Parameters.Item('Two')));

카테고리

Help CenterFile Exchange에서 Get Started with Microsoft .NET에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by