C# array of object indexing in matlab
Afficher commentaires plus anciens
In matlab, I have array of c# objects and I want to select the object on index position 1.
doc.Workbook.Worksheets
ans =
ExcelWorksheets with properties:
Count: 3
I tried to use small, curly and square brackets to access the object and I am getting following errors:
Array formation and indexing are not allowed on .NET objects.
doc.Workbook.Worksheets[1]
|
Error: Unbalanced or unexpected parenthesis or bracket.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 26 Août 2014
0 votes
Try parentheses instead of brackets: doc.Workbook.Worksheets(1)
1 commentaire
Observer
le 26 Août 2014
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!