How to set markers in custome intervals?
Afficher commentaires plus anciens
The problem I have here is that using the default add marker in the code or the Fig editor, doesn't really work since I have tons of data points. Is there anyway to set markers on specific intervals so they do not over lap? Below is the code I am using for three figures:
figure(Fig_true);
plot(true_strain(1:a,1),true_stress(1:a,1),'b','linewidth',3);
figure(Fig_eng);
plot(eng_strain,eng_stress,'b','linewidth',3);
figure(Fig_strain_h);
plot(true_strain(1:a,1), strain_h,'b');
3 commentaires
sixwwwwww
le 18 Oct 2013
Dear Ayat, what are "Fig_true", "Fig_eng" and "Fig_strain_h" here? and also can you explain what you mean by marker here?
ayat
le 19 Oct 2013
Image Analyst
le 19 Oct 2013
I knew that, but why did my code suggestion below not meet your needs?
Réponses (1)
Image Analyst
le 19 Oct 2013
Modifié(e) : Image Analyst
le 19 Oct 2013
Sure. You can try
% Plot elements 1-100 in blue dots
plot(true_strain(1:100,1),true_stress(1:100,1),'b.');
hold on;
% Plot elements 101-200 in red crosses
plot(true_strain(101:200,1),true_stress(101:200,1),'r+');
% Plot elements 201:300 in green squares
plot(true_strain(201:300,1),true_stress(201:300,1),'gs');
Catégories
En savoir plus sur Surface and Mesh Plots 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!