How to access and run the file rlc.sg

 

  1. At the command prompt in Unix, create a new directory.

% mkdir rlccirc

      

  1. Go to the directory which contains the SGF examples.

% cd ~fengj/SGF/examples/ch12/examples

  

  1. Copy the file rlc.sg to the directory you created.

% cp rlc.sg  ~yourloginname/rlccirc

 

  1. Go to your directory – the one you copied the file into.

% cd ~yourloginname/rlccirc

 

  1. Check that the file is indeed in the directory.

% ls

 

  1. To run the file using SGF, type:

% SG rlc

 

  1. To extract the results files, type:

% extract rlc.res all

 

  1. Before plotting the results in Matlab, you should copy the file to a file not having the .000 extension:

% cp VC.000 VC

% cp t.000 t

 

  1. Open Matlab for plotting:

% matlab

 

  1. In Matlab, load the files to be plotted, by typing “load filename.”

 

11.  In Matlab, to plot the results, for example:

      >> plot(t, VC)