Basics, Building SPICE Applications (MATLAB) |
Table of ContentsBasics, Building SPICE Applications (MATLAB) Note About HTML Links Environment Set-up Unix/Linux Windows Confirm MATLAB can access Mice: A simple example program Basics, Building SPICE Applications (MATLAB)
Note About HTML Links
In order for the links to be resolved, if not done already by installing the lessons package under the Toolkit's ``doc/html'' directory, create a subdirectory called ``lessons'' under the ``doc/html'' directory of the ``mice/'' tree and copy this document to that subdirectory before loading it into a Web browser. Environment Set-up
Unix/Linux
>> addpath( '/naif/mice/lib') >> addpath( '/naif/mice/src/mice') Windows
>> addpath( 'c:\naif\mice\lib') >> addpath( 'c:\naif\mice\src\mice') Confirm MATLAB can access Mice:
>> which miceA proper response shows a path to the Mice interface library, similar to:
/naif/mice/lib/mice.mexmaciThe response
'mice' not found.indicates the MATLAB search path does not include the Mice directories ``src/mice'' and ``lib.'' A simple example program
File tk_ver.m:
function tk_ver() disp( ['Toolkit version : ' cspice_tkvrsn('TOOLKIT') ] )From MATLAB, execute the function:
>> tk_ver Toolkit version : CSPICE_N0067 |