home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
m
/
matlab
/
!Matlab
/
!Help
< prev
next >
Wrap
Text File
|
1994-03-23
|
3KB
|
74 lines
!Matlab gives some of the facilities of the Desktop to the
Archimedes version of an early form of MATLAB (1982 - now
public domain) with a limited scope. It can be installed by
double-clicking on its icon; then dragging a MATLAB script
file of type 'MatlabSc' (&111) or type 'Text' (&FFF) onto
the icon-bar icon loads and runs MATLAB, and runs that
script from an internal instruction EXEC('file',k) with the
value of the parameter k set from the menu. The default
value of k is 7, for pause mode, which gives successive
outputs by pressing <Return> (see MATLAB's HELP EXEC for
full information about k). When the script file is of type
'Text', holding down an Alt key while dragging also changes
its type to 'MatlabSc'.
Alternatively, once !Matlab has been 'seen' by the operating
system, double-clicking on the icon of a MATLAB script file
of type 'Matlab' installs !Matlab, loads and runs MATLAB,
and runs the script in that file with the value of the
parameter k = 7.
Clicking SELECT on MATLAB's icon-bar icon runs MATLAB to
allow instructions to be entered from the keyboard.
With RISC OS 2, the output is displayed directly on the
screen; with RISC OS 3, the output is displayed in a task
window.
To leave MATLAB and return to the Desktop, follow the prompt
<> by typing the command EXIT <Return> or pressing F1.
The menu has three items:
Info: for Information box
Exec k: sub-menu allows the parameter k in EXEC('file',k) to
be set for Matlab script files which are to be dragged
to the icon-bar icon or (if of type 'Matlab') to be
double-clicked to run.
Quit: closes the application and removes its icon from the
icon-bar.
The 'file' parameter used in the EXEC, SAVE, LOAD, PRINT and
DIARY functions must be a simple filename (a string of up to
10 characters). Thus a file can only be EXECed or LOADed
from the current directory, and output is saved in the
current directory with its file name always converted to
lower case. Running a script file by dragging its icon onto
the !Matlab icon-bar icon or double-clicking on its icon
sets the current directory to the directory that contains
the file.
A MATLAB script can use EXEC to call MATLAB script files in
the same directory that contain user-defined functions which
use data from the calling program. To try to run such
scripts directly by dragging or double-clicking will usually
lead to error; in fact, EXEC will call files of any type,
but for convenience, the type 'MatlabFn' (&112) has been
provided for files of this kind.
!Matlab runs MATLAB as a secondary task and needs more than
2 Mbytes of RAM memory when MATLAB is running (but only 32
Kbytes otherwise). Since it requires access to all the files
in its directory except the text files !Help, LINUX_READ and
ReadMe for its operation, it may be helpful to use it from a
copy held in RAM disk (min 160K), which gives fastest access
to MATLAB. With RISC OS 3, !Edit must be active.
The file HLP in the !Matlab directory is MATLAB's help file,
which describes all the functions and operators in this
version of MATLAB, and the files LINUX_READ and ReadMe give
a brief account of how it was ported to Archimedes.