Lower level file i/o functions, MATLAB in Statistics

Lower Level File I/O Functions:

Whenever reading from data file, as long as the data in the file is "regular" the load function works-in another words, the similar type of data on every line and in the similar format on every line-therefore it can be read into a matrix.

Though, data files are not always set up in this manner. Whenever it is not possible to use the load, MATLAB has what are known as lower level file input functions which can be used. The file should be opened first, that involves finding or creating the file and positioning an indicator at the starting of the file. Whenever reading has been done, the file should be closed.

Likewise, the save function can write matrices to the file, but when the output is not a simple matrix there are lower level functions to write to files. The file once again should be opened first and closed when the writing has been done.

 

 

Posted Date: 10/20/2012 6:16:05 AM | Location : United States







Related Discussions:- Lower level file i/o functions, Assignment Help, Ask Question on Lower level file i/o functions, Get Answer, Expert's Help, Lower level file i/o functions Discussions

Write discussion on Lower level file i/o functions
Your posts are moderated
Related Questions
Representing Logical true and False: It has been stated that expressions which are theoretically true really have the integer value of 1, and expressions which are theoretical

Core Objects: The Core Objects in MATLAB are the very fundamental graphics primitives. The description can be found under the MATLAB Help: Under the Contents tab, click the Ha

Rectangle - graphics objects: The other core graphics object is the rectangle that can have curvature added to it (!!). Merely calling the function rectangle without any argum

Advanced File Input and output: Where 'format' involves the conversion characters much like those used in the fprintf function. For illustration, to read the file 'subjexp.dat

Variable packages: Variable packages are now the vector of structures, hence each and every element in the vector is a structure. To show one element in the vector, an index i

Example of Function stubs: The three functions have not so far been written, though, therefore the function stubs are put in place so that the script can be executed and teste

bjjh

fscanf function - file function: The fscanf reads matrix variable mat columnwise from the file specified by fid. The 'format' involves conversion characters much similar to th

Example of Functions which return values: Calling this function prints the circumference, since there is no way to store the value, hence, it can be used in following computat

Illustration of Nested loops: Running the script shows the output: >> printstars ***** ***** ***** The variable rows identifies the number of rows to print, and