1 / 5

MATLAB 2D Plots II

MATLAB 2D Plots II. ENGR 1181 Presentation by Annie Abell. 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. The fplot Command.

cili
Download Presentation

MATLAB 2D Plots II

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