Color map plotting with weightage

2 ビュー (過去 30 日間)
Manish Kumar
Manish Kumar 2019 年 5 月 8 日
回答済み: KSSV 2019 年 5 月 8 日
Dear Experts,
I want to plot (x,y) with the circles associated with the weightage of y depends on the third column of excel sheet. The plot should look like the attached image. Color map will be appreciated.Screenshot (42).png
  1 件のコメント
Adam
Adam 2019 年 5 月 8 日
Does
doc plot
not do the job?

サインインしてコメントする。

採用された回答

KSSV
KSSV 2019 年 5 月 8 日
Read about scatter
[num,txt,raw] = xlsread('Book1.xlsx') ;
x = num(:,1) ;
y = num(:,2) ;
w = num(:,3) ;
plot(x,y)
hold on
% remove the nans
idx = isnan(x) ;
x(idx) = [] ; y(idx) = [] ; w(idx) = [] ;
scatter(x,y,w+20,w,'filled') % 20 is added to 20, it can be changed

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by