Filter löschen
Filter löschen

How to plot a structure with multiple fields

14 Ansichten (letzte 30 Tage)
Eberechi ICHI
Eberechi ICHI am 11 Mär. 2021
Kommentiert: Eberechi ICHI am 11 Mär. 2021

Akzeptierte Antwort

Jan
Jan am 11 Mär. 2021
Bearbeitet: Jan am 11 Mär. 2021
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 Kommentare
Jan
Jan am 11 Mär. 2021
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 am 11 Mär. 2021
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);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Psychology finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by