Introduction to MATLAB
Introduction to MATLAB
Dr./ Ahmed Nagib Mechanical Engineering department, Alexandria university, Egypt
Sep 2015
Chapter 2 Plotting in MATLAB
Nomenclature for a typical xy plot. Figure 5.1?1, page 220
Y LABEL
2--1
X LABEL
Matlab contains many powerful functions for easily creating plots of several types such as logarithmic, surface and contour plots.
Command Plot
Example 2.1
As a simple example, let us plot the function
= 3 cos 2 for 0
7.
We choose to use an increment of 0.01 to generate a large number of x values in order to produce a smooth curve. The function plot(x,y) generates a plot with the x values on the horizontal axis and the y on the vertical access, as seen in the following slide:
2-2
Example 2-1 ? cont. A graphics window showing a plot
2-3
To add x and y labels and a title to the graph, we use the following commands:
xlabel(`x'); ylabel(`y'); title(`Example 10');
2-4
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- introduction to financial management pdf
- introduction to finance
- introduction to philosophy textbook
- introduction to philosophy pdf download
- introduction to philosophy ebook
- introduction to marketing student notes
- introduction to marketing notes
- introduction to information systems pdf
- introduction to business finance pdf
- introduction to finance 15th edition
- introduction to finance books
- introduction to finance online course