MATLAB BUILDER EX 1 User's Guide Page 153

  • Download
  • Add to my manuals
  • Print
  • Page
    / 182
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 152
Utility Library Classes
D-9
method performs this transformation and additionally converts dates in string
form to COM date types.
Example. This example uses MWDate2VariantDate to process numeric dates
returned from a method compiled from the following MATLAB function.
function x = getdates(n, inc)
y = now;
for i=1:n
x(i,1) = y + (i-1)*inc;
end
This function produces an n-length column vector of numeric values
representing dates starting from the current date and time with each element
incremented by
inc days. Assume that this function is included in a class
named
myclass that is included in a component named mycomponent with a
version of 1.0. The subroutine takes an Excel range and a
Double as inputs and
places the generated dates into the supplied range. If an error occurs, a
message box displays the error text. This function assumes that
MWInitApplication has been previously called.
Sub GenDates(R As Range, inc As Double)
Dim aClass As Object
Dim aUtil As Object
On Error GoTo Handle_Error
Set aClass = CreateObject("mycomponent.myclass.1_0")
Set aUtil = CreateObject("MWComUtil.MWUtil")
Call aClass.getdates(1, R, R.Rows.Count, inc)
Call aUtil.MWDate2VariantDate(R)
Exit Sub
Handle_Error:
MsgBox (Err.Description)
End Sub
Class MWFlags
The MWFlags class contains a set of array formatting and data conversion flags
(See “Data Conversion Rules” on page B-2 for more information on conversion
between MATLAB and COM Automation types). All MATLAB Excel Builder
Page view 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 181 182

Comments to this Manuals

No comments

Avanti 392PST Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Kühlschränke Avanti 392PST.
Wir stellen 1 PDF-Handbücher Avanti 392PST zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Kühlschränke Avanti

Modelle Dokumententyp
WC52SS Bedienungsanleitung   Avanti WC52SS User Manual, 20 Seiten
WCR682SS-1 Bedienungsanleitung   Avanti WCR682SS-1 User Manual, 20 Seiten
FF1061W Bedienungsanleitung    Avanti FF1061W User Manual, 22 Seiten
RM3420W Bedienungsanleitung   Avanti RM3420W User Manual, 16 Seiten
EWC18DZ Bedienungsanleitung   Avanti EWC18DZ User Manual, 16 Seiten
INSTRUCTION MANUAL CK302R Bedienungsanleitung   Avanti INSTRUCTION MANUAL CK302R User Manual, 24 Seiten
CK36-1 Bedienungsanleitung   Avanti CK36-1 User Manual, 24 Seiten
FF882PSS Bedienungsanleitung   Avanti FF882PSS User Manual, 22 Seiten
WC 40D Bedienungsanleitung   Avanti WC 40D User Manual, 18 Seiten
RM3152W Bedienungsanleitung   Avanti RM3152W User Manual, 16 Seiten
WCR9000S Bedienungsanleitung   Avanti WCR9000S User Manual, 20 Seiten
FF1213PS Bedienungsanleitung   Avanti FF1213PS User Manual, 20 Seiten
RM4551B-2 Bedienungsanleitung   Avanti RM4551B-2 User Manual, 20 Seiten
BCA4561B-2 Bedienungsanleitung   Avanti BCA4561B-2 User Manual, 16 Seiten
VINERA EWC1201 Bedienungsanleitung   Avanti VINERA EWC1201 User Manual, 16 Seiten
SHP2403B Bedienungsanleitung   Avanti SHP2403B User Manual, 16 Seiten
WC681BG-2 Bedienungsanleitung   Avanti WC681BG-2 User Manual, 24 Seiten
RA317WT Bedienungsanleitung   Avanti RA317WT User Manual, 20 Seiten
EWC2410DZ Bedienungsanleitung   Avanti EWC2410DZ User Manual, 20 Seiten
FF992PS Bedienungsanleitung   Avanti FF992PS User Manual, 22 Seiten