How to plot multi array in one segmentation?

2 次查看(过去 30 天)
Hello all,
I would like to plot multi array in one graph by using cx cy for plot.
this is my code and dataset.
T = readmatrix('dataset.csv')
R = reshape(
T.',size(T,2), 16, [])
size(R)
P = permute(R,[2 1 3])
size(P)
F = P(:,:,1:1622)
szf= size(F);
Ft = sum(sum(F,1),2)
cy = sum((1:szf(1)).'.*sum(F,2))./Ft
cx = sum((1:szf(2)).*sum(F,1))./Ft
imshow(F,[]); hold on
plot(cx,cy,'*','markersize',20)
the result that I want it like this.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by