create a dice roll pie chart with a legend and title in matlab

main.m
% Define the labels and data for the pie chart
labels = {'1', '2', '3', '4', '5', '6'};
data = [1/6 1/6 1/6 1/6 1/6 1/6];

% Create the pie chart
pie(data, labels);

% Add title and legend
title('Dice Roll Distribution');
legend(labels, 'Location', 'best');
258 chars
11 lines

gistlibby LogSnag