%% Plot Table Data with Custom Colors
% You can plot data from a table and customize the colors by specifying the cvar argument when you call the polarbubblechart function.
% For example, create a table with four variables of random numbers, and plot the Th and R variables. Vary the bubble sizes according to the Sz variable, and vary the colors according to the Colors variable.

% Create a table of random numbers
Th = linspace(0,2*pi,10)';
R = randi([0 10],10,1);
Sz = rand(10,1);
Colors = rand(10,1);
tbl = table(Th,R,Sz,Colors);

% Create polar bubble chart
polarbubblechart(tbl,'Th','R','Sz','Colors')

% Copyright 2020 The MathWorks, Inc.