MATLAB BUILDER EX 1 Guía de usuario Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 164
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
3 Usage Examples
Multiple Files and Va riab le Arguments Example
The M-file, myplot, takes a single integer input and plo ts a line from 1 to
that number.
The M-file,
mysum, takes an input of varargin of type integer, adds all the
numbers, and returns the result.
The M-file,
myprimes, takes a single integer input n and returns all the prime
numbers less than or equal to
n.
The Microsoft Excel file,
mymulti.xls, demonstrates these functions i n
several ways.
Note To get started, copy the distributed directory xlmulti from
<matlab>\toolbox\matlabxl\examples\xlmulti to <matlab>\work.
Creating the Project
1 From the MATLAB command prompt, change directories to <matlab>\work.
2 If you have not
already done so, execute the following command in
MATLAB:
mbuild -setup
Be sure to choo
se a supported compiler. S e e Supported Compilers at
http://www.m
athworks.com/support/tech-notes/1600/1601.shtml
.
3 W hile in MATLAB, issue the following command to open Deployment Tool:
deploytool
4 Create a project with the following settings:
3-6
Vista de pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 163 164

Comentarios a estos manuales

Sin comentarios