Writing code to sketch a figure between two vectors values
2 views (last 30 days)
Show older comments
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
Accepted Answer
Star Strider
on 27 Apr 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')
More Answers (0)
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!