How to find pores of line network?

3 ビュー (過去 30 日間)
lena kappa
lena kappa 2022 年 1 月 4 日
編集済み: lena kappa 2022 年 1 月 11 日
Hello everyone!!
The following code creates random lines from a set of random points.
How can I find the pores?
for Nlines=50:50:600
nnl=nnl+1;
nLinesarray(nnl)=Nlines;
Lx=10;
Ly=10;
for nlstart=1:Nlines-1
for nl=nlstart+1:Nlines
xc(nc)=(yo(nl)-yo(nlstart))/(slope(nlstart)-slope(nl));
yc(nc)=slope(nl)*xc(nc)+yo(nl);
nc=nc+1;
end
end
Npointsarray(nnl)=nc-1;
Npoints=nc-1;
nc1=0;
for np=1:Npoints
if xc(np)>0 && xc(np)<10
if yc(np)>0 && yc(np)<10
nc1=nc1+1;
yc1(nc1)=yc(np);
end
end
end
Npointsregion(nnl)=length(xc1);
end
  4 件のコメント
KSSV
KSSV 2022 年 1 月 5 日
We are not able to see any plot from the code. Can you show us a pictorial example of your expectations? Also include the plot in the given code.
lena kappa
lena kappa 2022 年 1 月 5 日
編集済み: lena kappa 2022 年 1 月 11 日
ok thank you guys

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by