how to get plot with the points increasing with changing color (as points increase their color change from grey to black)

2 次查看(过去 30 天)
Hello everyone!
Please i need your help. I wanted to have a figure with the values changing color say from grey to black as the values or points in Bs increases.
I tried with below code but it did not workout, it have many colors which is had to analyze.
pleasse help..
thanks
e=0.25;
sigma=[0.1 0.3 0.5 0.7 0.9];
Bs=[Bp01 Bp03 Bp05 Bp07 Bp1];
plot(sigma,Bs,'-s','linewidth',2.5)
set(gca, 'YScale', 'log')

回答(1 个)

KSSV
KSSV 2021-3-1
X = repmat((1:5)',1,5) ;
Y = rand(5,5) ;
plot(X,Y,'.-')

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by