Consider the statement and give the output of the code.

1 view (last 30 days)
Consider the statements given below: x=-1:.1:1; y= x. ^2; plot (x,y,'g.') Give the output of above code. What is the significance of ‘g’ used?
  1 Comment
Ankit
Ankit on 27 Jan 2022
Edited: Ankit on 27 Jan 2022
g: green color and . - Marker .this plot with green dots
Please refer to this page to know more about Line and Markers: Specify Line and Marker Appearance in Plots - MATLAB & Simulink - MathWorks Deutschland
x=-1:.1:1; y= x.^2; plot (x,y,'g.')

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!