These codes are available for you to copy from the instructor account:
cp ~stewart/cs205/ch4*/* .
Notice the UNIX wildcards making the directory names simpler to deal withd
This link was discovered using Xwin32 -> Rohan and firing up
matlab&
and using the Help panel of the MATLAB Desktop.
fig4_1.m
demonstrates the exponential (exp), hyperbolic sine (sinh) and hyperbolic cosine
(cosh).
fig4_2.m
demonstrates the functions arc cosine (acos), asin and atan.
Instructor will also use
the MATLAB command window to add a title to the figure.
Your program can export binary data with
save filename x y z
creating the file filename.mat in MATLAB proprietary binary format,
so that the data can only be read and manipulated by MATLAB.
MATLAB has an import Wizard for interactive sessions, but we will not go into this due to our focus on writing MATLAB code to solve problems.
reader.m reading binary data with the operating system calls.
changer.m an elaborate example that can change binary data in a file.