MATLAB Application Program Interface Reference Help Desk

matPutString

Purpose

Write character mxArrays into MAT-files

Fortran Syntax

Arguments

mfp

Pointer to MAT-file information.

name

Name of mxArray to write to MAT-file.

str

Character array to write to MAT-file.

Description

matPutString writes the mxArray with the specified name and str to the MAT-file mfp. It returns 0 if successful, and 1 if an error occurs.

If the mxArray does not exist on the MAT-file, it is appended to the end. If an mxArray with the same name already exists in the file, the existing mxArray is replaced with the new mxArray by rewriting the file.

Example

Then you can go to MATLAB and enter:

Note: Fortran MAT-file routines are not available on Windows.



[ Previous | Help Desk | Next ]