Revision 495
(checked in by cbc, 12 years ago)
|
Initial import of Stark code.
|
Line | |
---|
1 |
% LOADFILE: Script for interactivally selecting and loading data files. |
---|
2 |
% Just enter 'loadfile' at the command prompt and a browser |
---|
3 |
% appears (using 'uigetfile') which allows you to select a file |
---|
4 |
% to be loaded into the current workspace. Files with extension |
---|
5 |
% .mat or no extension are treated as .mat-files, others are |
---|
6 |
% assumed to be ascii files. |
---|
7 |
% |
---|
8 |
% See LOAD and UIGETFILE for further information. |
---|
9 |
|
---|
10 |
% Olof Liungman, 970310. |
---|
11 |
|
---|
12 |
[file,path] = uigetfile('*','Load file'); |
---|
13 |
|
---|
14 |
if isstr(file) |
---|
15 |
eval(['load ',path,file]) |
---|
16 |
end |
---|
17 |
|
---|
18 |
clear path file |
---|