Revision 495
(checked in by cbc, 12 years ago)
|
Initial import of Stark code.
|
Line | |
---|
1 |
function OpenAs() |
---|
2 |
% |
---|
3 |
% Abstract: |
---|
4 |
% User interface to open a template figure window. |
---|
5 |
% Runs function that is selected |
---|
6 |
% |
---|
7 |
% Usage: |
---|
8 |
% >> OpenAs |
---|
9 |
% |
---|
10 |
|
---|
11 |
% |
---|
12 |
% History: |
---|
13 |
% o 15 August 1995 created function OpenAs as part of Prmenu, |
---|
14 |
% by Sara Haines. |
---|
15 |
% |
---|
16 |
|
---|
17 |
[filename, funcpath] = uigetfile('*.m', 'Open Template', 125, 125); |
---|
18 |
currentpath = pwd; |
---|
19 |
eval(['cd ' funcpath]); |
---|
20 |
[funcname]=strtok(filename,'.'); |
---|
21 |
eval([funcname]); |
---|
22 |
eval(['cd ' currentpath]); |
---|