File Exchange

image thumbnail


version 1.0 (5.73 KB) by

Saves current variables in a delineated ASCII file:



No License

Saves current variables in a delineated ASCII file:

variable names 1st, horizontally, with data for each below the name.

Usage/Input: save_ascii(loadname,savename,dataformat,delineator);

- 'loadname' = filename of the *.mat file to save as ASCII
- 'savename' = filename to save this text output to
- 'dataformat' = format of 'double array' data (e.g. '%6f' for six digit fixed-point notation)
- 'delineator' = what to delineate data blocks with (e.g. '\t' for tab)

eg. save_ascii('data.mat','textfile.txt','%6f','\t');

This script can only handle two data types: 'char' and 'double', where the 'char' types can only be one dimensional (e.g. size = 1X15), and the 'double array's can be one or two dimensional (e.g. sizes = 52X1, 1X52, or 30X344).

Comments and Ratings (1)

A. Schialieri

i think saveascii.m is better

MATLAB Release
MATLAB 5.2 (R10)

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video