how to use more than one color for the plot with respect to the code given below
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
jaah navi
am 10 Feb. 2019
Beantwortet: madhan ravi
am 10 Feb. 2019
code:
load fisheriris.mat
plot(meas(:,1),meas(:,2),'s')
the plot gives all the points to be in same color.
Could anyone help me how to display the points in different color instead of single color.
3 Kommentare
Akzeptierte Antwort
madhan ravi
am 10 Feb. 2019
Since I don't have the data :
R=rand(150,1); % example data
RR=reshape(R,25,[]); % reshape your data into 25 rows
plot(RR)% plots each 25 rows with n colors which is the column
% Remember MATLAB is column dominant
0 Kommentare
Weitere Antworten (0)
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!