plot with different symbols
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two vectors with 1000 length each. for example
r1 = rand(1000,1); r2 = rand(1000,1); then I want to plot a scatter which shows r1 versus r2 as follows:
plot(r1, r2) I want to show each two values of r1 and 2 with the same symbol but different from the rest. any suggestion ?
1 Kommentar
Antworten (1)
Iain
am 13 Okt. 2014
r1 = rand(1,1000);
r2 = rand(1,1000);
plot(1:1000,r1,'bx',1:1000,r2,'kx')
Change the x to +, d, s, o for other symbols....
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!