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 Center および File ExchangeGet 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