save_ascii

Version 1.0.0.0 (2.24 KB) by K I
Saves current variables in a delineated ASCII file:
3.8K Downloads
Updated 9 Mar 1999

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');

Limitations:
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).

Cite As

K I (2024). save_ascii (https://www.mathworks.com/matlabcentral/fileexchange/339-save_ascii), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Workspace Variables and MAT-Files in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0