Chemical Engineering Department
University of Florida
ECH 4323L / COT 3502 / ECH 6326
LABORATORY 3B
MATLAB PLOTS AND MFILES
Student Name:
_______________________________
1.0
Practice Assignment
Activate MATLAB and try out all the commands discussed in class concerning plotting,
creating Mfiles, and using while, for, and if structures.
Note that you can
create an Mfile
from the MATLAB command window by selecting
the menu entries
File > New > Mfile
.
It is possible to
edit an existing Mfile
by
selecting
File > Open.
You may want to receive interactive help from MATLAB on selected command.
For
example, to obtain a description of the command
diary
, type
>>help diary
.
2.0
Generate a plot of the function y = log
10
(x) for values of x between 0.0001 and 100.
Use
increments of 0.01 for x. The plot must conform to the following specifications
(i)
Plot the data using a dotted line.
(ii)
Include a title, an xlabel, a ylabel, and a grid.
IMPORTANT
:
include your
name
and the date
as part of the title of your graph.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Spring '10
 Crissale
 matlab, Mfile, Mfile starts

Click to edit the document details