plotting 2D data with respect to a third property

2 ビュー (過去 30 日間)
Sumera Yamin
Sumera Yamin 2019 年 8 月 9 日
コメント済み: Sumera Yamin 2019 年 8 月 9 日
Hi, i have a data, lets say x and y column vectors, and i want to plot the data ccording to a third property represented by column vector z. I want to use for binning and plot a 2D scatter with the color bar showing range of z. please suggest the best way to do so. "Hist" and "scatter" command does not serve this purpose and "binscatter" gives the child of plot what i want, but its color Any help wants to be highly appreciated.
  1 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 9 日
3 D plot ?
surf or mesh

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

採用された回答

Neuropragmatist
Neuropragmatist 2019 年 8 月 9 日
Can you be more specific about what is wrong with scatter?
x = rand(100,1);
y = rand(100,1);
z = rand(100,1);
figure
scatter(x,y,50,z,'filled');
axis square
colorbar
untitled.png
What about that output is not what you described?
M.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by