Documentation of savebindata2
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
Function Synopsis
savebindata2(FileLS, varargin)
Help text
SAVing BINary DATA to a file and provide the data with any name
The even input variables in varargin ({1}, {3}, ...) are assigned
to variables. The names of these variables are given in the odd input
variables in varargin ({2}, {4}, ...). Thus, the name can be defined
freely in the calling function.
Then all variables are saved to the data mat-file defined in FileLS.
However, the new variables are appended to the mat file, variables of
the same name are replaced.
This function is written for Matlab >=5.x.
For Matlab 4.x please use loadsave with a similar functionality.
Syntax: savebindata2(FileLS, varargin)
Input parameters:
FileLS - String containing the name of the mat-file
if the file doesn't exist, it will be created
P1-Pxx - (optional) input variables (all in varargin)
even numbers: string containing name of next variable
odd numbers: variable
example: P1 contains the name of the variable in P2
P3 the name of the variable in P4 and so on
Output parameter:
no output parameter
Example:
% mat-file 'filename.mat' doesn't exist
>>savebindata2('FileName', 'var2', var2, 'var3', var3)
% now mat-file 'filename.mat' contains 1 struct variable
% called 'GEATbxData' with 2 fields called: 'var2' and 'var3'
>>savebindata2('FileName', 'hell5', hell5, 'blurr2', blurr2)
% now mat-file 'filename.mat' contains 1 struct variable
% called 'GEATbxData' with 4 fields called: 'var2', 'var3', 'hell5', 'blurr2'
See also: geamain2
Cross-Reference Information
|
This function is called by |
|
|
This document is part of
version 3.8 of the
GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab -
www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is
not public domain.
© 1994-2006 Hartmut Pohlheim, All Rights Reserved,
(support@geatbx.com).