Writing variables to a file, MATLAB in Mathematics

Writing variables to a File:

The save command is used to write variables to a file, or to append the variables to a MAT-file. By the default, save function writes to a MAT-file. It can either save the whole present workspace (all variables which have been generated), or a subset of the workspace (involving, for illustration, just 1 variable). The function save will save the file in the present directory, therefore it is important to set that properly first.

To save all the workspace variables in a file, the command is as shown below:

save filename

The .mat extension is automatically added to the filename. The contents of the file can be exhibited by using who with the -file qualifier:

who -file filename

 

 

Posted Date: 10/20/2012 6:40:55 AM | Location : United States







Related Discussions:- Writing variables to a file, Assignment Help, Ask Question on Writing variables to a file, Get Answer, Expert's Help, Writing variables to a file Discussions

Write discussion on Writing variables to a file
Your posts are moderated
Related Questions
Fliplr function: The fliplr function "flips" the matrix from left to right (in another words the left-most column, the first column, become the last column and so on), and the

How do I write a product series running from i to n of x''s using a for loop?

Creating string Variables: The string consists of a few numbers of characters (including, possibly, none). These are the illustrations of the strings: '' 'x' 'ca

Give the formula for a rational function that has a hole at x=7 & vertical asmptote at x=-3/2

Script a MATLAB program which meets the following speci cations: The program expects an input of a two-variable real-valued continuous function f : R^2--> R The program is to cal

Plot Functions: Faraway, we have plotted to generate two-dimensional plots and bar to generate bar charts. We have seen how to clear the Figure Window by using clf, and how to

Using Functions with the Vectors and Matrices: As MATLAB is written to work with the vectors and matrices, the whole vector or matrix can be passed as an argument to the funct

Error-Checking for Integers: As MATLAB uses the type double by default for all the values, to check to make confirm that the user has entered an integer, the program have to c

Blanks function: The blanks function will generate a string consisting of n blank characters-that are kind of hard to see here! Though, in a MATLAB if the mouse is moved to hi

Recursive Functions: The Recursion occurs whenever something is defined in terms of itself. In the programming, a recursive function is a function which calls itself. The Recu