LoadFromFile
Copyright (C) 2009-2016 Peter Rakyta, Ph.D.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Returns a class to load variables from a file.
interface = LoadFromFile( filename )
Parameters | |
---|---|
filename | A string containing the path to the file. In octave use absolute path only. |
- structure containing the loaded data.
- String containing the path to the loaded file.
LoadFromFile::LoadVariable
Loads a variable from the opened file.
ret = object.LoadVariable( varname )
Parameters | |
---|---|
varname | The name of the variable. |
varargin |
Optional parameters given by a sequance ...'name', value,... . Possible parameters are the following:
|
Return | |
---|---|
ret | The value of the loaded variable. |
LoadFromFile::setLoadedVariable
Set a loaded variable.
object.setLoadedVariable( varname, value, varargin )
Parameters | |
---|---|
varname | The name of the variable. |
value | The value to be set. |
varargin |
Optional parameters given by a sequance ...'name', value,... . Possible parameters are the following:
|
LoadFromFile::SaveLoadedVariables
Saves the loaded variables.
object.SaveLoadedVariables( varargin )
Parameters | |
---|---|
varargin |
Optional parameters given by a sequance ...'name', value,... . Possible parameters are the following:
|
LoadFromFile::ClearLoadedVariables
Disposes the loaded file.
object.ClearLoadedVariables( varargin )
- Log in to post comments