I have created groups (clusters) on a plot using mask command but now I want to list those groups as separate columns in sheet. Can someone pls help me with the code to do so?
4 ビュー (過去 30 日間)
古いコメントを表示
Hoping for an answer. Thanks in advance for your help.
clear all;
close;
clc;
filename = 'Testfile7.xlsx';
T = readtable(filename, 'VariableNamingRule', 'preserve');
ns = T.Id; nd = T.Id_1;
mask = nd ~= 0;
s = ns(mask); d = nd(mask);
G = graph(s, d);
plot(G)
bins = conncomp(G)
I am hoping to have some code between the 8th and 10th line to get the groups or clusters in the form of columns which are generated and can be seen Testimage.fig file and the Testimage.png file.
Regards
J
1 件のコメント
Image Analyst
2021 年 9 月 15 日
Give an example of what you'd want for the first few clusters. What would your resulting array look like?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!