MATLAB COMPILER RELEASE NOTES Podręcznik Użytkownika Strona 589

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 716
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 588
External Interfaces/API
20-45
invoke(target_sheet, 'Activate');
Activesheet = myApp.Activesheet;
cellname = 'B2';
Range = Activesheet.cells.Range(cellname,cellname);
the term Range is both a function on the MATLAB path and a constructor of the class
Range. MATLAB tries to execute the function range, which generates the error:
??? Error using ==> range
Too many input arguments.
Error in ==> MyScript at 8
Range = Activesheet.cells.Range(cellname,cellname);
To get the property value, use the get function.
For example:
Range = get(Activesheet.cells, 'Range', cellname, cellname);
Przeglądanie stron 588
1 2 ... 584 585 586 587 588 589 590 591 592 593 594 ... 715 716

Komentarze do niniejszej Instrukcji

Brak uwag