Plot 2D graph - parameters explanation?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, I have a few questions about editing my graph in MATLAB.
Questions are:
1) How can I have a grid like this (you can see dots starting at every section on y axis (0.5, and 1), and on x axis)
2) This line of code
stem(x,y,'bv:','MarkerSize',6,'LineWidth',2)
does not give me exactly the same output as here in the picture. I can't figure it out why (I tried many combinations, but didn't work)
Thanks in advance
0 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 19 Okt. 2019
Hi,
if I have understood your question correctly, the answer lies in ylim:
ylim([-1.5 1.5])
And this plot is not obtained with stem() alone, but also plot().First, it's been plotted with plot() using: plot(x,y, 'g--', 'linewidth', 8) or like in this around, and then with stem().
Good luck.
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!