No BSD License  

Highlights from
Matrix2M

2.0

2.0 | 1 rating Rate this file 16 Downloads (last 30 days) File Size: 3.15 KB File ID: #8933
image thumbnail

Matrix2M

by

 

03 Nov 2005 (Updated )

Outputs the m-file commands necessary to recreate a matrix, useful to include constants in m-files.

| Watch this File

File Information
Description

This function takes a variable name, collects its contents from the base workspace and outputs (to the clipboard and the variable OutputCharMatrix) the m-code necessary for MATLAB to re-create the variable, including the variable name.
This is useful for including matrices of constants in m-files.

Accepts full or sparse matrices of real or complex numeric values.

For small 2D matrices, try mat2str instead.
Example:
a=rand(3,3,3);
Matrix2M('a')

MATLAB release MATLAB 7 (R14)
Other requirements Tested on a windows PC, probably works on UNIX too.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
27 Jan 2006 Victor Zakharov

strange2return in program

Contact us