Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help on classifying the interior points of the following graph using matlab. There are a 100 points total. I have the boundary points
I need help on classifying the interior points of the following graph using matlab. There are a 100 points total. I have the boundary points classified but not the interior. That is the part I am having difficulty with. If someone can help, that would be great!
the "intnode" should be everything inside so it should be 64. This is what shows up in matlab after the whos command:
This is the code I have so far:
0 10 > 0.99 o 0.8. 0.7 0.6 OD o O O 0 O 0.5 5 o 0.4 o o 0.3 o 0.2 0.1% o o ode 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Name Size Bytes Class Attributes bdpt 576 double 36x2 100x2 ctes 1600 double intnode 36x2 576 refinel refine2 10xl 100xl double double logical double 100 100xl 800 Y 100xl 800 double ctrs = load('ctrs.txt'); %plot(ctr(:,1), ctrs(:,2),'o') x = ctrs(:,1); y = ctrs(:,2); refine1 = find (x==0); refine2 = x==0x==1|y==0|y==1 bdpt = [x(refine2) y(refine2)] intnode = (x(refine2) y(refine2)] plot(ctrs(:,1),ctr(:,2),'o', bdpt(:,1), bdpt(:,2),'Xr'); 0 10 > 0.99 o 0.8. 0.7 0.6 OD o O O 0 O 0.5 5 o 0.4 o o 0.3 o 0.2 0.1% o o ode 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Name Size Bytes Class Attributes bdpt 576 double 36x2 100x2 ctes 1600 double intnode 36x2 576 refinel refine2 10xl 100xl double double logical double 100 100xl 800 Y 100xl 800 double ctrs = load('ctrs.txt'); %plot(ctr(:,1), ctrs(:,2),'o') x = ctrs(:,1); y = ctrs(:,2); refine1 = find (x==0); refine2 = x==0x==1|y==0|y==1 bdpt = [x(refine2) y(refine2)] intnode = (x(refine2) y(refine2)] plot(ctrs(:,1),ctr(:,2),'o', bdpt(:,1), bdpt(:,2),'Xr')Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started