scatter plot - Get region areas using Convexhull function Matlab -


so trying calculate areas on matlab plot. using scatter function plot this: enter image description here

the color corresponds fibre orientation in degrees trying area each region of 10 degrees. instance, i'm taking dots 10 20 degree. let's have 3 distinct regions. want use convexhull able extrapolate , area. more clear, using following loop:

c=z1>10 & z1 < 20; c=c.*1; i=1:length(z1)     if z1(i)< 20 && z1(i)> 10         c(i) = 1;     else         c(i)=0;     end  end 

i locate dots in region , replot scatter: enter image description here

now red dots corresponds angles between 10 , 20, rest blue. want able label each region , circle them area using convexhull. think have turn thing in black , white, enlarge each dot circle touch each other, fill hole have uniform region , apply convexhull function. have no idea how that. if has suggestion?

edit: instead of doing scatter(x1,y1,3,c,'filled') create matrix b=[c c c] color matrix, , inverse 0 , 1 doing b = ~b; picture scatter(x1,y1,3,b,'filled') think can use directly convexhull?

enter image description here


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -