Effacer les filtres
Effacer les filtres

Writing code to sketch a figure between two vectors values

1 vue (au cours des 30 derniers jours)
Ali Noori
Ali Noori le 27 Avr 2015
Commenté : Star Strider le 27 Avr 2015
Hi I'd like to write code to obtain a figure such as (attached Figure) from the following: X axis [1-10] Y axis [0-100] QS1= [50 55 56 52 54 50 60 70 71 65] QS2= [55 57 58 55 55 55 63 73 75 70]
cheers

Réponse acceptée

Star Strider
Star Strider le 27 Avr 2015
Done:
QS1= [50 55 56 52 54 50 60 70 71 65];
QS2= [55 57 58 55 55 55 63 73 75 70];
x = 1:10;
figure(1)
plot(x, QS1, 'ok', 'MarkerFaceColor','k')
hold on
plot(x, QS2, 'or', 'MarkerFaceColor','r', 'MarkerSize',3)
hold off
axis([0 10.5 0 105])
legend('QS1', 'QS2', 'Location','Ne')
title('Impact Factor')
xlabel('\bfN\rm')
text(-1.1, 60, '\bfQS\rm')
  2 commentaires
Ali Noori
Ali Noori le 27 Avr 2015
thank u so much Sir it works perfectly.
Star Strider
Star Strider le 27 Avr 2015
My pleasure.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by