Usage of a single color while plotting using scatter3
Show older comments
Hi, I am trying to plot a four dimensional array using scatter3 command. My interest is to show one of the dimension varying the intensity of the same color e.g. light red to dark red. However I am not yet successful. I have attached my code below.
clear, clc;
i=importdata('wp1_param.txt')
p=i.data(:,1);
x=i.data(:,2);
y=i.data(:,3);
z=i.data(:,4);
data = [x;y;z]
c = [1:31]
colorbar
scatter3(x,y,z,100,p','filled')
A solution to the above problem will be highly appreciated.
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!