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
bjjh

MENU Function: The MATLAB also has a built-in function known as menu which will display a figure Window with push buttons for the choices. The very first string passed to the

Curve Fitting: The data is fundamentally either discrete or continuous. In most of the applications, data is sampled, for illustration, The temperature recorded every ho

Debugging Techniques: Any error in the computer program is called a bug. This word is thought to date back to the 1940s, whenever a problem with an early computer was found to

Determine sequence weights for the sequences ACTA, ACTT, CGTT, and AGAT in problem 1 by using Thompson, Higgins, and Gibson method a) compute pairwise distances between sequences

Illustration of Binary search: An illustration to search for the key of 91 in the vector is as shown below: The table below shows what will happen in each iteration of

Need of a nested loop: How would we sum each individual column, rather than getting an overall sum? Answer: The programming technique would need a nested loop in whi

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

Run-time or execution-time error: The Run-time, or execution-time, errors are found whenever a script or function is executing. With most of the languages, an illustration of

Generic code for Reading from Files: The generic code to complete this is as shown below:   fid = fopen('filename'); if fid == -1    disp('File open not suc