cili
Uploaded by
5 SLIDES
209 VUES
60LIKES

Understanding MATLAB 2D Plots: fplot, Polar Plots, and Subplots for Engr 1181

DESCRIPTION

This presentation by Annie Abell covers essential tools for creating 2D plots in MATLAB. It begins with the `fplot` command, which allows for plotting functions of a single variable described as strings. An example is provided for plotting the function (y = x^3 + 2x^2 - 5) within the interval (-3 < x < 3). The presentation also explores polar plots using the `polar` command, requiring equal-length vectors for (r) and (theta). Finally, subplots are introduced with the `subplot` command for organizing multiple plots, enhancing data visualization in engineering applications.

1 / 5

Télécharger la présentation

Understanding MATLAB 2D Plots: fplot, Polar Plots, and Subplots for Engr 1181

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MATLAB 2D Plots II ENGR 1181 Presentation by Annie Abell

  2. The fplot Command fplot('function', [limits]) • The fplot command lets you plot a function • Only one variable can be referenced in the function • Function is entered as a string

  3. The fplot Command Plot the function y = x^3 + 2x^2 -5 for -3<x<3: >> x=0 >>fplot('x^3 + 2*x^2 -5', [-3,3])

  4. Polar Plots polar (theta, r) • The polar command plots functions with coordinates r andƟ. • r and Ɵ must be equal length vectors. • Use 'hold on, hold off' to plot multiple curves.

  5. Subplots subplot(rows, columns, plot #) • Use before typing the plot command • Specifies the location of the subsequent plot

More Related
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer