MATLAB Application Program Interface Reference Help Desk

engPutFull

Purpose

Write full mxArrays into the workspace of an engine

Fortran Syntax

Arguments

ep

Engine pointer.

name

Name of mxArray to put into engine's workspace.

m

Row dimension.

n

Column dimension.

pr

Pointer to real part.

pi

Pointer to imaginary part.

Description

Most MATLAB applications work only with full (nonsparse) mxArrays. This routine provides an easy way to write a full mxArray into a MATLAB engine process. It offers an alternative to engPutMatrix, which does not require use of the mxArray structure.

engPutFull writes the mxArray with dimensions m-by-n, real data pr, and imaginary data pi into the workspace of engine ep with the specified name.

If the mxArray does not exist in the engine's workspace, it is created. If an mxArray with the same name already exists in the workspace, the existing mxArray is replaced with the new mxArray.

Example

See fengdemo.f in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to call the MATLAB engine functions from a Fortran program.

Note: Fortran engine routines are not available on Windows.



[ Previous | Help Desk | Next ]