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 Center および File Exchange2-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