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

조회 수: 1 (최근 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에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by