How do I make a bubble(s) with different size matrices

1 回表示 (過去 30 日間)
Dominik Jerinic
Dominik Jerinic 2021 年 6 月 19 日
コメント済み: Dominik Jerinic 2021 年 6 月 19 日
Hi to all,
Is it possible to make an irregular shape bubble or bubbles with different size matrices?
Is there any function to do that?
I have this inputs:
x = 1:360;
y = 1:180;
z = 180:360
I will also need a different colors of bubbles beacuse I have several "z" values but the "x" and "y" are always the same values.
Thank you in advance.

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 6 月 19 日
Solution is bubblechart3()
x = 1:360;
y =linspace(1,180,360); % Size of y has to macth with the one of x
z = randi([180, 360], 1, 360); % The same for z
SZ = randi([180, 360],1,360); % Size change has to be equal to the one of x, y, z
Color=1:360; % Color change
bubblechart3(x,y,z,SZ, Color);
  1 件のコメント
Dominik Jerinic
Dominik Jerinic 2021 年 6 月 19 日
Thank you Slaymon but maybe I wrote it wrong.
My "z" is not 180:360. I have the values in each cell in matrix (180 x 360). Can you adjust the code to make bubbles for this kind of "z"?
Thank you in advance.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by