Professional Documents
Culture Documents
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 27, 2011 1/5
Directional Exploration Importing and exporting data
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 27, 2011 2/5
Directional Exploration Importing and exporting data
Syntax:
load filename (loads all variables stored in filename)
load filename variable names (loads only selected variables)
E.g.
Implement the following commands:
clear all;
whos; (Lists current variables)
load xydata; (Loads all variables in ‘xydata’)
whos plot (x,y), axis(’square’);
f
clear all
load xydata x y (Loads only variables ‘x’ and ‘y’)
whos
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 27, 2011 3/5
Directional Exploration Importing and exporting data
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 27, 2011 4/5
Directional Exploration Importing and exporting data
Let’s execute the script file TempData and check the new variables.
clear all
Tempdata (Execute the script file TempData)
whos
Month
Dr. TGI Fernando () IM 512 3.0 (I) Mathematical Software September 27, 2011 5/5