How do I change Grid Size in R2013a?
Mostra commenti meno recenti
How do I change or adjust the grid size? I am suppose to have a grid of .001 for x values less than 2. How would I go about doing that? This is my code for my graph
x = (0:2*pi);
y = sin(x);
fig1 = plot(x,y)
grid on
xlabel('x-axis')
ylabel('y-axis')
3 Commenti
Sasirekha
il 7 Ott 2023
Is the plot correct when the grid size is 5?
Sakthivel
il 18 Giu 2024
Is the plot correct when the grid size is 5?
Walter Roberson
il 18 Giu 2024
Yes, the plot is correct when the grid size is 5. It just isn't very interesting.
x = (0:2*pi);
uses the default increment of 1 for the list of values. The resulting x will have only 0, 1, 2, 3, 4, 5, and 6. That is not dense enough for a meaningful plot.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Object Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
