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
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

Illustration of Mode When there is more than one value with similar (highest) frequency, then the smaller value is mode. In the case below, as 3 and 8 appear twice in the vecto

Sorting Strings: For the matrix of strings, the sort function works exactly as formerly for numbers. For illustration, >> words = char('Hi', 'Hello', 'Howdy', 'Goodbye', '

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

Vectorizing: In most of the cases in MATLAB, loops are not essential. As MATLAB is written specifically to work with the vectors and matrices, most operations can be completed

Areacirc function: The areacirc function can be called from the Command Window as shown here, or from a script. Here is a script which will prompt the user for the radius of o

Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti

Example of Nested functions: For illustration, the function below computes and returns the volume of a cube. Three arguments are then passed to it, for the width and length of

Function Stubs: The other common debugging method, which is used when there is a script main program which calls many functions, is to use the function stubs. A function stub

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