Skip to content
Solved Assignments

Exploring MATLAB Plotting: Line, Color, and Marker Specifications with a Quadratic Function Graph

Explores MATLAB plotting features.

Preview 2 of 3 pages

See the first 2 pages exactly as they appear in the document.

  1. Page 1
    Read page 1 as text

    Exploring MATLAB Plotting: Line, Color, and Marker Specifications with a Quadratic Function Graph 1. Question one. Script to plot y=x^2.given x= x = [1:0.05:3]. %Script to plot a graph y=x^2.given x= x = [1:0.05:3]. x = [1:0.05:3] y=x.^2 plot ( x,y,'r') 2. Question two. a. Matlab Line Specification . ' -- ' Dashed line ' : ' Dotted line ' - . ' Dashed - dot line b. Matlab Color Specification. ' r ' - Red ' g ' - Green ' c ' - Cyan ' m ' - magenta ' y ' - yellow ' k ' - black ' w ' – white c. Matlab Marker Specifiers . ' + ' - plus sign ' o ' - circle ' * ' - asterisk ' . ' - point ' x ' - cross ' square ' or ' s ' - square ' diamond ' or ' d ' - Diamond 3. Question Three. %Script to plot a graph y=x^2.given x= x = [1:0.05:3]. x = [1:0.05:3]; y=x.^2; plot (x,y,'r')

  2. Page 2

1 more page in the full document

Unlock it once and it stays in your library, ready to chat with or turn into flashcards.

Unlock the full document
See all

Study this document with CramX

Once it is in your library, every tool can work from it.