MATLAB: How to plot a structure with multiple fields

MATLABmultiple fieldsstructure data

Best Answer

FigH = figure;
AxesH = axes(FigH, 'NextPlot', 'add');
for k = 1:numel(rgn2)
data = rgn2(k).PixelList;
plot(data(:, 1), data(:, 2)); % Or how you plot one of these values
end