How to access and run the file rlc.sg
- At the
command prompt in Unix, create a new directory.
% mkdir rlccirc
- Go to
the directory which contains the SGF examples.
% cd ~fengj/SGF/examples/ch12/examples
- Copy
the file rlc.sg to the directory you created.
% cp rlc.sg ~yourloginname/rlccirc
- Go to
your directory – the one you copied the file into.
% cd ~yourloginname/rlccirc
- Check
that the file is indeed in the directory.
% ls
- To run
the file using SGF, type:
% SG rlc
- To
extract the results files, type:
% extract rlc.res all
- 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
- Open Matlab for plotting:
% matlab
- In Matlab, load the files to be plotted, by typing “load
filename.”
11. In Matlab, to plot
the results, for example:
>> plot(t, VC)