MATLAB BUILDER EX 1 Guide de l'utilisateur

Naviguer en ligne ou télécharger Guide de l'utilisateur pour Logiciel MATLAB BUILDER EX 1. MATLAB BUILDER EX 1 User`s guide [en] [es] Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 164
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Builder for Excel

MATLAB®Builder for Excel®The Language of Technical ComputingComputationVisualizationProgrammingUser’s GuideVersion 1

Page 3 - Revision History

A Producing a COM Object from MATLABWhen a component is created, you can specify a version number (default =1.0). During the develop ment of a specifi

Page 4

Calling ConventionsCalling Co nventionsThis section describes t he calling conventions for MATLAB Builder for Excelcomponents, including mappings from

Page 5

A Producing a COM Object from MATLAB...[in] VARIANT varargin);This IDL function definition is generated by producing a function with thesame name as t

Page 6 - Function Wizard

Calling Conventionsvarargin As Variant)(See “Programming w ith COM Components C reated by MATLAB Builderfor .NET” in the MATLAB B uilder for .NET docu

Page 7 - Functions — Alphabetical List

A Producing a COM Object from MATLAB(function body)...foo = Y1...(error handling code)...End FunctionBy default, the generated formula function contai

Page 8

BData ConversionData Conversion Rules (p. B-2)Describes the process of convertingdata betwee n M ATLAB an d C O MvariantsArray Formatting Flags (p. B-

Page 9 - Tr oubleshooting

B Data ConversionData Conversion RulesThis topic describes the data co nv ersion rules for MATLAB Builder for Excelcomponents. These components are du

Page 10 - Contents

Data Conversion RulesVA RIANT Type Codes SupportedVARIANT Type Code(C/C++) C/C++ TypeVariantType Code(Visual Basic)VisualBasicType DefinitionVT_EMPTY

Page 11 - Getting Started

B Data ConversionVARIANT Type Codes Supported (Continued)VARIANT Type Code(C/C++) C/C++ TypeVariantType Code(Visual Basic)VisualBasicType DefinitionVT

Page 12 - 1 Getting Started

Data Conversion RulesVARIANT Type Codes Supported (Continued)VARIANT Type Code(C/C++) C/C++ TypeVariantType Code(Visual Basic)VisualBasicType Definiti

Page 13

1Getting StartedWhat Is MATLAB Builder for E xcel?(p. 1-2)Brief d es cription of t he productBuilding a Deployable Application(p. 1-4)Describes the st

Page 14

B Data ConversionMATLAB to COM VARIANT Conversion Rules (Continued)MATLAB DataTypeVARIANT Type forScalar DataVARIANT Type forArray Data CommentscharA1

Page 15

Data Conversion RulesMATLAB to COM VARIANT Conversion Rules (Continued)MATLAB DataTypeVARIANT Type forScalar DataVARIANT Type forArray Data Commentsdo

Page 16

B Data ConversionMATLAB to COM VARIANT Conversion Rules (Continued)MATLAB DataTypeVARIANT Type forScalar DataVARIANT Type forArray Data Commentsuint8A

Page 17 - Testing the Component

Data Conversion RulesMATLAB to COM VARIANT Conversion Rules (Continued)MATLAB DataTypeVARIANT Type forScalar DataVARIANT Type forArray Data Commentsin

Page 18

B Data ConversionCOM VARIANT to MATLAB Conversion RulesVARIANT TypeMATLAB Data Type(scalar or arraydata) CommentsVT_EMPTYN/A Empty array created.VT_I1

Page 19

Data Conversion RulesCOM VARIANT to MATLAB Conversion Rules (Continued)VARIANT TypeMATLAB Data Type(scalar or arraydata) CommentsVT_INT int32VT_UINT u

Page 20

B Data ConversionArray Formatting FlagsExcel Builder components have flags that control how array data is formattedin both directions. Generally, you

Page 21 - MATLAB Builder for

Array For matting FlagsArray Formatting Flags (Continued)Flag DescriptionInputArrayIndFlagSets the input array indirection level used with theInputArr

Page 22

B Data ConversionData Conversion FlagsExcel Builder components contain the following flags to control the conversionof certainVARIANT types to M ATLAB

Page 23

Data Conversion FlagsVT_UINTVT_ERRORVT_BOOLVT_DATEValid values for this flag aremwTypeDefaultmwTypeCharmwTypeDoublemwTypeSinglemwTypeLogicalmwTypeInt8

Page 24

1 Getting StartedWhat Is MATLAB Builder for Excel?MATLAB®Builder for Excel®(also called Excel Builder) is an extension to theMATLAB Compiler. You use

Page 25

B Data Conversionthe rule listed in VARIANT Type Codes Supported on page B-3. ThemwDateFormatString flag converts a VARIANT date to its string represe

Page 26 - New Operator

CUtility LibraryReferencing Utility Classes (p. C-2)How to reference the classes in yourprogramming environment.Utility Library Classes (p. C-3)Descri

Page 27

C Utility LibraryReferencing Utility ClassesThis section describes the MWComUtil library provided with MATLAB Builderfor Excel. This library is freely

Page 28 - End Function

Utility Library ClassesUtility Library Class esThe MATLAB Builder for E xcel Utility library provides these classes:• “Class MWUtil” on page C-3• “Cla

Page 29

C Utility LibraryParameters.Argument Type DescriptionpApp ObjectA valid reference tothe current ExcelapplicationReturn Value. None.Remarks. This funct

Page 30

Utility Library ClassesSub MWPack(pVarArg, [Var0], [Var1], ... ,[Var31])Packs a variable length list of Variant argum ents into a single Variantarray.

Page 31

C Utility LibraryOptional V2 As Variant, _Optional V3 As Variant, _Optional V4 As Variant, _Optional V5 As Variant, _Optional V6 As Variant, _Optional

Page 32

Utility Library ClassesArgument Type DescriptionnStartAt LongOptional startingindex (zero-based)in the array to beginprocessing. Default =0.bAutoResiz

Page 33

C Utility LibraryThis function produces a sequence o f nargout random column vectors, withthe length of theith vector equal to i. Assume that this fun

Page 34 - Modifying Flags

Utility Library ClassesParameters.Argument Type DescriptionpVar VariantVariantto be convertedReturn Value. None.Remarks. MATLAB handles dates as doubl

Page 35 - Modifying F lags

What Is MATLAB Builder for Excel?name and class name, and which methods (MATLAB functions) go into aparticular class, are purely organizational.As a g

Page 36

C Utility LibrarySet aUtil = CreateObject("MWComUtil.MWUtil")Call aClass.getdates(1, R, R.Rows.Count, inc)Call aUtil.MWDate2VariantDate(R)Ex

Page 37

Utility Library ClassesProperty InputArrayFormat As mwArrayFormat. This property of typemwArrayFormat controls the formatting of arrays passed as inpu

Page 38

C Utility LibraryProperty OutputArrayF orm a t As mwArra yFo rmat. This property of typemwArrayFormat controls the formatting of arrays passed as outp

Page 39 - Usage Examples

Utility Library ClassesProperty AutoResizeOutput As Boolean. This flag applies to Excel rangesonly. When the target output from a method call is a ran

Page 40 - Magic Square Examples

C Utility LibraryConversion Rules for Input DatesValue Behavio rmwDateFormatNumericConvert dates to numeric values asindicated by the rule listed in C

Page 41

Utility Library Classesexplicit type declaration for the aClass variable. As with previous examples,this function assumes thatMWInitApplication has be

Page 42 - 3 Usage Examples

C Utility LibraryParameters.Argument Type DescriptionppFlags MWFlagsReferencetoanuninitializedMWFlagsobject that receives thecopyReturn Value. NoneRem

Page 43 - VBAProject (mymagic.xls)

Utility Library ClassesParameters.Argument Type DescriptionvarDims VariantOptional array ofdimensionsvarFieldNames VariantOptional array of fieldnames

Page 44

C Utility LibraryCall y.Initialize(, Array("name", "age", "salary"))Exit SubHandle_Error:MsgBox(Err.Description)End SubP

Page 45 - 1 Start Exce

Utility Library ClassesField name only This format may be used only in the case of a1-by-1 structure array and returns the namedfield’s value. For exa

Page 46

1 Getting StartedBuilding a Deployable ApplicationUsing MATLAB Builder for Excel to create a deployable application requiresthe following steps:• “Cre

Page 47

C Utility LibraryAll indices and field name This format accesses an array element ofa multidim ensional array by specifyingnindices. These statements

Page 48

Utility Library ClassesDim Index1(1 To 2) As IntegerDim Index2(1 To 2) As IntegerIndex1(1) = 1Index1(2) = 1Index2(1) = 3Index2(2) = 2x(Index1, Index2,

Page 49

C Utility LibraryExample. The next Visual Basic code sample illustrates how to a ccess atwo-dimensional structure array’s fields when the field names

Page 50

Utility Library ClassesParameters.Argument Type DescriptionppStruct MWStructReferencetoanuninitializedMWStructobject to receive thecopyReturn Value. N

Page 51 - Spectral Analysis Example

C Utility LibraryEnd SubClass MWFieldThe MWField class holds a single field reference in an MWStruct object. Thisclass is noncreatable and contains th

Page 52

Utility Library ClassesParameters.Argument Type DescriptionppField MWFieldReferencetoanuninitializedMWFieldobject to receive thecopyReturn Value. None

Page 53 - Selecting the Libraries

C Utility Libraryand type of the Real property’s array, an error results when the object isused in a method call.Example. The following Visual B asic

Page 54

Utility Library ClassesSub Clone(ppComplex As MWComplex)Creates a copy of an MWComplex object.Parameters.Argument Type DescriptionppComplex MWComplexR

Page 55

C Utility LibraryProperty NumColumns As LongStores the colum n dimension for the array. The value of NumColumns must benonnegative. If the value is 0,

Page 56

Utility Library ClassesSub Clone(ppSparse As MWSparse)Creates a copy of an MWSparse object.Parameters.Argument Type DescriptionppSparse MWSparseRefere

Page 57

Building a Deployable Application3 Create a new project by clicking the New Project button in the toolbar.4 A dd f iles that you want to enc ap su lat

Page 58

C Utility Libraryvals(K) = -1K=K+1rows(K) = Icols(K) = Ivals(K) = 2K=K+1rows(K) = I + 1cols(K) = Ivals(K) = -1K=K+1Nextrows(K) = 5cols(K) = 5vals(K) =

Page 59 - RefEdit refedtPowSpect

Utility Library ClassesProperty Value As VariantThe Value property stores the actual argument to pass. Any type that can bepassed to a compiled method

Page 60

C Utility LibraryEnumerationsThe MATLAB Builder for Excel Utility library provides three enumerations(sets of constants):• “Enum mwArrayFormat” on pag

Page 61

EnumerationsmwDataType Values (Continued)Constant Numeric Value MATLAB TypemwTypeDouble 6 doublemwTypeSingle 7 singlemwTypeInt8 8 int8mwTypeUint8 9 ui

Page 62

C Utility LibraryC-34

Page 63 - ThisWorkbook

DTroubleshooting

Page 64

D TroubleshootingThis appendix provides a table showing errors you may encounter usingMATLAB Builder for Excel, probable causes for these errors, and

Page 65 - "= A1 + 0.01"

TroubleshootingExcel Builder Errors and Sugges ted Solutions (Continued)Message Probable Cause Suggested SolutionLoadLibrary("component_name.dll&

Page 66

D TroubleshootingRequired L oc ations to Develop and Use ComponentsComponentDevelopment Machine Tar get MachineMCR Makesurethatmatlabroot\bin\win32app

Page 67 - Spectral Analysis add-in

TroubleshootingExcel Errors and Suggested SolutionsMessage Probable Cause Suggested SolutionThe macros in this p roject aredisabled. Please refer to t

Page 68 - Fourier_pkg.exe

1 Getting Started6 Add classes (optional).7 Save the p roject by clicking the Save button in the toolbar.8 Bu ild the component.Click the Buildbuttoni

Page 69

D TroubleshootingD-6

Page 70 - 4 Function Wizard

EExamplesUse this list to find examples in the d o cumentation.

Page 71

E ExamplesCalling a MATLAB Function from Excel“Magic Square Examples” on page 3-2Using Multiple Files and Variable Arguments“Multiple Files and Variab

Page 72 - Star ting the Function Wizard

IndexIndexAarray formatting flags 2-14Ccapabilities A-2class 1-2class methodcalling 2-6Class MWFlags C-10Class MWUtil C -3class name 1-2COMdefined 1-2

Page 73 - Using the Function V i ewer

IndexRrequired argument s 4-8Sself-registering component A-7subroutines 2-3TtroubleshootingExcel Builder D-2type library A-5Uunregistering components

Page 74

Building a Deployable Applicationnot specify the class name (<class_name>), mcc uses the component name asthe default. If you do not specify a v

Page 75 - Component Browser

1 Getting StartedFormula functions of this type are most useful to access a function of one ormore inputs that returns a single scalar value. When you

Page 76 - Function Properties

Building a Deployable Applicationreopening the project in D ep loym ent Tool and clicking the Package buttonin the t oolbar. Repeat this distribution

Page 77 - Editing Required Arguments

How to Contact The MathWorkswww.mathworks.comWebcomp.soft-sys.matlab Newsgroupwww.mathworks.com/contact_TS.html Technical [email protected]

Page 78

1 Getting Started1-10

Page 79 - Editing varargout Outputs

2Programming withMATLAB Builder forExcelOverview of the Integration Process(p. 2-2)Provides information on integra tingMATLAB Builder for Excelcompone

Page 80 - Argument Properties

2 Programming with MATLAB Builder for ExcelOver view of the Integration ProcessEach MATLAB Builder for Ex cel component is built as a CO M object that

Page 81

When to Use a Formula Function or a SubroutineWhentoUseaFormulaFunctionoraSubroutineVBA provides two basic procedure types: functions and subroutines.

Page 82 - Function Utilities

2 Programming with MATLAB Builder for ExcelInitializing M ATLAB Builder for E xcel Libraries with ExcelBefore you use any MATLAB Builder for Excel com

Page 83 - Move Function Dialog Box

Initializing MATLAB Bu ilder for Exc el Libraries with ExcelThis code is similar to the default initialization code generated in the VBAmodule created

Page 84

2 Programming with MATLAB Builder for ExcelCreating an Instance of a ClassBefore calling a class method (compiled MATLAB function), you mustcreate an

Page 85 - Functions — Alphabetical

Creating an Instance of a ClassFunction foo(x1 As Variant, x2 As Variant) As VariantDim aClass As mycomponent.myclassOn Error Goto Handle_ErrorSet aCl

Page 86 - Arguments

2 Programming with MATLAB Builder for ExcelHandle_Error:foo = Err.DescriptionEnd FunctionHow the MCR Is Shared Among ClassesMATLAB Builder for Excel c

Page 87 - Information

Calling the Methods of a Class InstanceCalling the Me thods of a Class InstanceAfter you have created a class instance, you can call the class methods

Page 88

Revision HistoryDecember 2001 Online only New for Version 1.0July 2002 First printing Revised for Version 1.1 (Release 13)June 2004 Online only Revise

Page 89

2 Programming with MATLAB Builder for ExcelFunction foo(x1 As Variant, x2 As Variant) As VariantDim aClass As ObjectDim y As VariantOn Error Goto Hand

Page 90 - Syntax deploytool

Processing varargin and varargout ArgumentsProcessing varargin and varargout ArgumentsWhen varargin and/or varargout are present in the MATLAB functio

Page 91 - Producing a COM Object

2 Programming with MATLAB Builder for ExcelSub foo(Rout1 As Range, Rout2 As Range, Rout3 As Range, _Rin1 As Range, Rin2 As Range)Dim aClass As ObjectD

Page 92

Handling Errors During a Method CallHandling Errors During a M ethod CallErrors that occur while creating a class instance or during a class methodcre

Page 93 - Interface Definition Creation

2 Programming with MATLAB Builder for ExcelModifying FlagsEach MATLAB Builder for Excel component exposes a single read/writeproperty namedMWFlags of

Page 94 - Component Registration

Modifying F lagsvar1(1,2) = 12#var1(2,1) = 21#var1(2,2) = 22#x(1,1) = 11x(1,2) = 12x(2,1) = 21x(2,2) = 22var2 = xSet aClass = New mycomponent.myclassC

Page 95

2 Programming with MATLAB Builder for ExcelSetting this flag presents all array input to the compiled MATLAB functionas cell arrays.Similarly, you can

Page 96

Modifying F lagsDim aClass As mycomponent.myclassDim var1, var2 As VariantDim y As VariantOn Error Goto Handle_Errorvar1 = 1var2 = 2#Set aClass = New

Page 97 - Self-Registering Components

2 Programming with MATLAB Builder for ExcelmwDateFormatStringCall aClass.foo(1,y,today)Exit SubHandle_Error:MsgBox(Err.Description)End SubThe n ext ex

Page 98

3Usage ExamplesMagic Square Examples (p. 3-2)Creates a m agic square from a singleinput integerMultiple Files and VariableArguments Example (p. 3-6)Pl

Page 100

3 Usage ExamplesMagic Square ExamplesThe M-file mymagic takes a single input, an integer, and creates a magicsquare of that size.The Excel filemymagic

Page 101 - Calling Co nventions

Magic Square ExamplesSettingValueProject namexlmagicClass namexlmagicclassProject d irectory The name of your work directory followed by thecomponent

Page 102 - Visual Basic Mapping

3 Usage ExamplesIllustration 2. Transpose the OutputReopen the Macro dialog box, select the mymagic_transpose macro and clickRun. This procedure retur

Page 103 - MATLAB Compiler Output

Magic Square ExamplesInspecting the Visual Basic Code1 From the Excelmainwindow,clickTools > Macro > Visual Basic Editor.2 W hen the Visual B as

Page 104

3 Usage ExamplesMultiple Files and Va riab le Arguments ExampleThe M-file, myplot, takes a single integer input and plo ts a line from 1 tothat number

Page 105 - Data Conversion

Multiple Files and Variable Arguments ExampleSettingValueProject namexmultiClass namexmulticlassProject d irectory The name of your work directory fol

Page 106 - Data Conversion Rules

3 Usage ExamplesIllustration 4: Calling myplo tThisillustration calls the functionmyplot with a value of 4. To execute thefunction, make A7 the active

Page 107

Multiple Files and Variable Arguments ExampleThis procedure plots a line from 1 through 4 in a MATLAB Figure window.This graphic can be manipulated as

Page 108 - B Data Conversion

3 Usage Examples• The second (cell A19) takes a range objectthatisarangeofcellswiththevalues 1 through 10, adds them, and returns the result of 55.• T

Page 109

Multiple Files and Variable Arguments ExampleTo execute the macro, from the main Excel window (not the Visual BasicEditor), open the Macro dialog box,

Page 110

ContentsGetting Started1What Is MATLAB Builder for Excel?...1-2Component Naming Conventions...1-2Building a Deployable

Page 111

3 Usage ExamplesInspecting the Visual Basic Code1 On the Excel main window, click Tools > Macro > Visual Basic Editor.2 On the Visual Basic Edit

Page 112

Spectral Analysis ExampleSpectral Analysis ExampleThis example illustrates the creation of a comprehensive Excel add-in toperform spectral analysis. I

Page 113

3 Usage Examplescomputefft.m:function [fftdata, freq, powerspect] = computefft(data, interval)if (isempty(data))fftdata = [];freq = [];powerspect = []

Page 114

Spectral Analysis Example2 Create a project with the following settings.SettingValueComponent nameFourierClass nameFourierProject d irectory The name

Page 115

3 Usage ExamplesCreating the M a in VB Code Module for the Application. The add-inrequires some initialization code and som e global variables to hold

Page 116 - Array Formatting Flags

Spectral Analysis ExamplePublic theFourier As Fourier.Fourierclass 'Global instance of Fourier objectPublic theFFTData As MWComplex 'Global

Page 117 - Array For matting Flags

3 Usage ExamplesMsgBox (Err.Description)End SubCreating the Visual Basic FormThe next step in the integration process develops a user interface for y

Page 118 - Data Conversion Flags

Spectral Analysis Example3 Add a series of controls to the b lank form to complete the dialog b ox, assummarized in the following table:Controls Neede

Page 119 - InputDateFormat

3 Usage ExamplesControls Needed for Spectral A nalysis Example (Continued)Control Type Control Name Properties PurposeLabel Label3Caption =Frequency:L

Page 120

Spectral Analysis ExampleControls Needed for Spectral A nalysis Example (Continued)Control Type Control Name Properties PurposeRefEdit refedtImagN/A S

Page 121 - Utility Library

Handling Errors During a Method Call ... 2-13Modifying Flags... 2-14Array Formatting Flags...

Page 122 - Referencing Utility Classes

3 Usage Examplesforanyofthecontrolsoranyglobalvariable,changethiscodetoreflectthose differences.''frmFourier Event handlers'Private Sub

Page 123 - Utility Library Class es

Spectral Analysis Example'Cancel button click event handler. Exits form without computing fft'or updating variables.Unload MeEnd SubPrivate

Page 124 - C Utility Library

3 Usage ExamplesbPlot = chkPlot.Value'Compute the fft and optionally plot power spectral densityIf bPlot ThenCall theFourier.plotfft(3, theFFTDat

Page 125 - Utility Library Classes

Spectral Analysis Example2 Place the following code into ThisWorkbook.Private Sub Workbook_AddinInstall()'Called when Addin is installedCall AddF

Page 126

3 Usage ExamplesCall RemoveFourierMenuItem'Find Tools menuSet ToolsMenu = Application.CommandBars(1).FindControl(ID:=30007)If ToolsMenu Is Nothin

Page 127

Spectral Analysis ExampleTesting the Add-InBefore distributing the add-in, test it with a sample problem.Spectral analysis is commonly used to find th

Page 128

3 Usage Examples3 Click and hold the l ower-right corner of cell A2 and drag the formula downthe column to cell A1001. This procedure fills the range

Page 129

Spectral Analysis ExampleThe power spectral density reveals the two signals at 15 and 40 Hz.Packaging and Distributing the Add-InAs a final step, pack

Page 130

3 Usage ExamplesMATLAB Builder for Excel creates the Fourier_pkg.exe self-extractingexecutable.3 To install this add-in onto another computer, copy th

Page 131

4Function WizardOverview of the Function Wizard(p. 4-2)Describes the purpose and use of theFunction WizardInstalling the Function WizardAdd-In (p. 4-3

Page 132

Installing the F unction Wizard Add-In ... 4-3Starting the Function Wizard... 4-4Understanding the F unction Viewer...

Page 133

4 Function WizardOver view of the Function WizardThe Function Wizard enables you to pass Microsoft Excel (Excel 2000 or later)worksheet values to a co

Page 134

Installing the Function Wizard Add-InInstalling the Function Wizard Add-InThe Function Wizard G U I is contained in an Excel add-in (mlfunction.xla)re

Page 135 - Sub Clone(ppFlags As MWFlags)

4 Function WizardStar ting the Function WizardTo start the Function Wizard, click Tools > MATLAB Functions fromthe Excel m enu bar. The starting po

Page 136

Understanding the Function ViewerUnderstanding the Function V iewerThe Function Viewer controls the execution of worksheet functions. Use theFunction

Page 137

4 Function Wizard3 Click Execute on the Functio n Viewer.When you click Execute, functions execute in the order displayed in thelist.4-6

Page 138

Component BrowserComponent BrowserThe Component Browser lists all Excel Builder components currentlyinstalled on t he system. When you click New on th

Page 139

4 Function WizardFunction PropertiesThis group of dialog boxes sets properties and values for the inputs andoutputs. You can map inputs and outputs to

Page 140

Function Pro perties• Req u ired arguments ap pe ar first on the left or right sides of a MATLABfunction and are not namedvarargin or varargout.•varar

Page 141 - Property Dims As Variant

4 Function WizardEditing Required OutputsWhen you are editing required output arguments, the Function Propertiesdialog box appears as shown:The Add an

Page 142

Function Pro pertiesEditing varargout OutputsWhen you are editing varargout outputs, the Function Properties dialogbox appears as shown:4-11

Page 143

Component Registration ... A-5Obtaining Registry Information... A-5Self-Registering Components...

Page 144

4 Function WizardArgument PropertiesThe Argument Properties and related dialog boxes allow you to selectworksheet ranges or optionally enter a specifi

Page 145 - Class MWComplex

Argument PropertiesOutput Argument Properties Dialog BoxHere is an example of the Argument Properties dialog box for outputarguments. In this example,

Page 146

4 Function WizardFunction UtilitiesExcel Builder supports several function utilities, which you use via thefollowing dialog boxes:• “Renam e Function

Page 147 - Class MWSparse

Function Utilities• The Advanced tab creates a rectangular array of copies of the currentfunction in the current worksheet, and optionally copies the

Page 148

4 Function Wizard• Positive increments move rows down and columns to the right.• Negative increments move rows up and columns to the left.You can also

Page 149

5Functions — AlphabeticalListcomponentinfodeploytool

Page 150

componentinfoPurpose Query system registry about component created w ith MATLAB Builderfor ExcelSyntax info = componentinfoinfo = componentinfo(compon

Page 151 - Sub Clone(ppArg As MWArg)

componentinfoThe return value is an array of structures representing all the registryand type information needed to load and use the component.When yo

Page 152 - Enumerations

componentinfoField DescriptionInterfacesAn array of structures defining all interface definition s inthe type library. Each structure contains tw o fi

Page 153 - Enum mwDateFormat

componentinfo• C - An array of C -Language function prototypes.• VB - An array of VBA function prototypesExamplesFunction CallReturnsInfo = componenti

Page 154

Class MWSparse ... C-27Class MWArg... C-30Enumerations...

Page 155 - Troubleshooting

deploytoolPurpose Open GUI for MATLAB Builder for E xcel and MATLAB CompilerSyntax deploytoolDescription The deploytool command displays the Deploymen

Page 156 - D Troubleshooting

AProducing a COM Objectfrom MATLABOverview of Internal Processes(p. A-2)Provides a high-level description ofinternal processesComponent Registration (

Page 157

A Producing a COM Object from MATLABOver view of Internal ProcessesMATLAB Builder for Excel lets you pass M icrosoft E xcel worksheet valuesto a compi

Page 158

Overview of Internal ProcessesThe process of creating an Excel Buildercomponentiscompletely automaticfrom a user p oint of v iew. You specify a list o

Page 159 - Medium on the Security

A Producing a COM Object from MATLABinterface definition in the IDL file. The interface GUID file contains thedefinitions of the GUIDs from all interf

Page 160

Component RegistrationComponent RegistrationWhen Excel Builder creates a compone nt, it automatically generates a binaryfile called a type library. As

Page 161 - Examples

A Producing a COM Object from MATLABans =Name: 'Imyclass'IID: '{3A14AB36-44BE-11D5-B155-00D0B7BA7544}'Info.CoClassesans =Name: &ap

Page 162 - Quer ying the Registry

Component Registrationans =function [varargout] = randvectors()ans =function [x] = getdates(n, inc)ans =function Page = myprimes(n)Self-Registering Com

Page 163

A Producing a COM Object from MATLABNote The mwregsvr utility invokes a process that is similar to regsvr32.exe,except thatmwregsvr does not require i

Page 164 - VARIANT variable B-2

Component Registration(Continued)Key DefinitionHKEY_CLASSES_ROOT\InterfaceInformation about COM interfaces on thesystem. Each component creates a new

Commentaires sur ces manuels

Pas de commentaire