Writing code to sketch a figure between two vectors values

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Star Strider
Star Strider el 27 de Abr. de 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')

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by