Consider the statement and give the output of the code.

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Ankit
Ankit il 27 Gen 2022
Modificato: Ankit il 27 Gen 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.')

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by