how to plot a graph
Afficher commentaires plus anciens
i have a matfile with x and y values as shown in the link below...
the x values are [1;2;3;4;5]..... for these x values and taking each column in the variable y, i want to plot a graph......
please can someone help me plot these 5 lines in one graph with each line in different color..... please do reply
i wanted the x-axis and y-axis markings to be as shown in the link below
please do reply....
Réponse acceptée
Plus de réponses (1)
Ahmed
le 12 Fév 2013
if true
%
hold on
for i=2:1:5
plot(x,y(:,i),'b-+','LineWidth',1,'MarkerSize',5);
xlabel('x values');
ylabel('y values');
end
end
you may change the values of i according to thr columns you want to plot
ok?
1 commentaire
Elysi Cochin
le 12 Fév 2013
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!