could anyone help me to solve the issue
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jaah navi
le 4 Juil 2019
Réponse apportée : Image Analyst
le 4 Juil 2019
I want to plot the graph with respect to the following code:
x=1:10
for x=1:10
y=log(x)
end
plot (x,y,'*')
When I run the code I am unable to get the correct result.
What I actually need is i want to plot the graph with respect to all values.
Could anyone please help me on it?
0 commentaires
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 4 Juil 2019
Try this:
x=1:10
y=log(x)
plot (x,y,'b*-')
grid on;
xlabel('x');
ylabel('y');
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!