MATLAB BUILDER EX 1 Betriebsanweisung Seite 23

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 164
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 22
When to Use a Formula Function or a Subroutine
WhentoUseaFormulaFunctionoraSubroutine
VBA provides two basic procedure types: functions and subroutines.
You access a VBA function directly from a cell i n a worksheet as a formula
function. Use function procedures when the original MATLAB function takes
one or more inputs and returns one scalar output.
You access a subroutine as a general macro. Use a subroutine procedure
when the original MATLAB function re turns an array of values or multiple
outputs because you need to map these outputs into multiple cells/ranges
in the worksheet.
When you create a component, Excel Builder produces a VBA module (
.bas
file). This file contains simple call wrappers, each implemented as a function
procedure f or each method o f the class.
2-3
Seitenansicht 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 163 164

Kommentare zu diesen Handbüchern

Keine Kommentare