How to use scatterplot in a loop
7 views (last 30 days)
Show older comments
Commented: Tomaszzz on 18 Mar 2022
I have two data sets which are matrixes 100x18 double.
I want to scatterplot:
column 1(data1) vs column 1 (data2)
column 2(data1) vs column 2 (data2)
column 18 (data 1) vs column 18(data2)
for g=1:length(Data2) %for each column
I would like these data sets plotted in diffrent colours. Can you help please?
Simon Chan on 18 Mar 2022
Data1 = reshape(1:100*18,,18);
Data2 = randi([50 100],100,18);
c = repmat(linspace(1,10,18),100,1);
More Answers (0)
Find more on Scatter Plots 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!