How to plot a structure with multiple fields

14 次查看(过去 30 天)

采纳的回答

Jan
Jan 2021-3-11
编辑:Jan 2021-3-11
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
  4 个评论
Jan
Jan 2021-3-11
Move these lines out of the loop:
imshow(StichedM_PRNB_2);
hold on;
title('Class 2 removal on PRNB', 'FontSize', 12);
Eberechi ICHI
Eberechi ICHI 2021-3-11
Thanks @Jan. This worked perfectly...
subplot(2,2,4)
imshow(StichedM_PRNB_2);
hold on;
for k = 1:numel(rgn2)
data = rgn2(k).PixelList;
plot(data(:, 1), data(:, 2), 'w*', 'LineWidth', 2, 'MarkerSize', 1);
end
title('Class 2 removal on PRNB', 'FontSize', 12);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Psychology 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by