I have made this cross plot between resistivity and porosity and color-coded by gas hydrate saturation. I need to separate the data points with a hydrate saturation of less than 20% by line.

댓글 수: 1

How does ‘hydrate saturation’ relate to the data in the plot?

댓글을 달려면 로그인하십시오.

 채택된 답변

Matt J
Matt J 2022년 7월 3일
편집: Matt J 2022년 7월 3일
You could use fitclinear. To illustrate, I will use fabricated data:
%synthetic data
N=500;
Resistivity=rand(N,1);
Porosity=rand(N,1);
Saturation=vecnorm([Porosity,Resistivity],2,2);
%classify
labels=Saturation<0.2;
mdl=fitclinear([Porosity,Resistivity],labels);
%plot
scatter(Porosity,Resistivity,50, Saturation,'filled'); colormap cool; colorbar
ax=axis;
hold on;
fimplicit(@(x,y)x*mdl.Beta(1)+y*mdl.Beta(2)-mdl.Bias,'LineWidth',3,'Color','k');
hold off
axis(ax*1.2-0.1)

추가 답변 (0개)

카테고리

질문:

2022년 7월 3일

편집:

2022년 7월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by