Author: | Peter Kattan | ISBN: | 9781301727612 |
Publisher: | Peter Kattan | Publication: | October 7, 2012 |
Imprint: | Smashwords Edition | Language: | English |
Author: | Peter Kattan |
ISBN: | 9781301727612 |
Publisher: | Peter Kattan |
Publication: | October 7, 2012 |
Imprint: | Smashwords Edition |
Language: | English |
This concise article of thirty pages takes you on a short tour on how to plot graphs using MATLAB. The presentation covers both two-dimensional and three-dimensional graphs. It is shown first how to plot a simple two-dimensional curve between two x and y vectors. This is followed by different commands to control the appearance of this curve – using color, curve type, legend, title, etc. Then it is shown how to plot two curves on the same graphs, followed by plotting four graphs on the same paper. Finally, different types of three-dimensional graphs are plotted including surface, mesh, and contour lines. The presentation is made in the form of solved examples showing the exact MATLAB commands used and the output. At the end of the article, there are about eleven unsolved exercises for students to practice. The solutions to all the exercises are also provided. This article is taken form the bestselling book “MATLAB for Beginners: A Gentle Approach.”
This concise article of thirty pages takes you on a short tour on how to plot graphs using MATLAB. The presentation covers both two-dimensional and three-dimensional graphs. It is shown first how to plot a simple two-dimensional curve between two x and y vectors. This is followed by different commands to control the appearance of this curve – using color, curve type, legend, title, etc. Then it is shown how to plot two curves on the same graphs, followed by plotting four graphs on the same paper. Finally, different types of three-dimensional graphs are plotted including surface, mesh, and contour lines. The presentation is made in the form of solved examples showing the exact MATLAB commands used and the output. At the end of the article, there are about eleven unsolved exercises for students to practice. The solutions to all the exercises are also provided. This article is taken form the bestselling book “MATLAB for Beginners: A Gentle Approach.”