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

10 Ansichten (letzte 30 Tage)
Hannes H.
Hannes H. am 20 Mär. 2018
Beantwortet: Divyabharathi V am 26 Jul. 2019
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!

Antworten (1)

Divyabharathi V
Divyabharathi V am 26 Jul. 2019
Please try this ,
disp(System.String.Concat(moduleConfiguration.Parameters.Item('One'), ':', moduleConfiguration.Parameters.Item('Two')));

Kategorien

Mehr zu Call MATLAB from .NET finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by