The hotel blocked ah Sophia in MATLAB so the Godfather blocking us off here in Matlab is just like you
would write X with space y with the space Z in scientists get it back it is equal to Sofia then you
will write to surface and inside dependencies you will write X go my wife common Z and at the end you
will write semicolons.
Also you will write at the end of sphere semicolon.
Okay then surface and inside the panel says you will write X common y common Z.
And if you want to also find the corner of the sphere.
So suppose you want a graphing of the Sofia just like red.
You will write inside the double quotation marks face face it.
Okay double quotation mark face color and then inside the double quotation mark.
All right.
Right.
Okay.
You will insert the into a button then you will get the sphere.
Remember that this Sofia will be at the center whose center is 0 0.
Okay.
If you will write surface X come away come on Z.
So this means that you are trying a sphere whose center is 0 0.
Also surface X on my wife or Mozzie inside our double quotation marks you will write face color.
And also inside that double quotation mark you will write Green.
Then you will get the green sphere.
Okay if you want to just like want to read a blue sphere then you will write about a blue and if you
want to read.
So these are red green and blue spheres.
Okay with the Center 0 0 and if you want 15 percent just like sentries 1 1 1.
Okay.
So you will get and others feels will Center's 1 1 and this is another sphere whose center is total.
And this is and others feel whose center is 3 3.
Okay so now we move to the matlab and yes we will draw the same code to dislike inside dependencies
where we are writing X with the space y with space z is equal to sphere.
And here we and write semicolon.
And then here we are going to write this like.
Surface is surface inside of the semicolons.
We are writing X my Y or Z.
Okay.
And then we to press to enter button.
Yes.
So this is a sphere.
Okay.
Yes.
No.
Copy and then again paste over here and send the command window.
Yes surface X go my way.
Come on Z.
And here I am inserting face face Carla inside the double quotation mark.
Okay.
Yes.
No quotation marks.
Yes and no matter the color separated by comma.
And inside the double quotation Martin.
Right.
Okay.
And now we press the enter button and we will get the right sphere.
This is our right for you.
Okay.
And uh okay if we want to change it just like we want to get green here all right.
GREENE OK and uh insert into a button you will get a green sphere again blue sphere.
Yes you will right the blue and and so they interpret them.
And this is a plus for you just like okay.
So again just like we are going to right over here registry.
Yes.
This is a sphere.
And to here will change the center will keep the force center was zero.
You don't know the center's x 1 1 7 1 2 x plus 1 y plus 1 and C plus 1.
Okay so insert the interpreter you will get and thus feel this whole center is 1 1.
Okay X plus two Y plus 2 and C plus 2 Yes Z plus 2 you will get three or four centuries total.
So this is the third three years whose center is to do that again.
Copy and paste over here and we'll join the center.
We are taking a center three three and three.
Okay.
And also will change the green color green.
Yes sir The into Britain and you will get those for you.
Okay so this is the way hole to draw a sphere in Matlab.
Okay.
With different centers.
Okay so the code has been described in the previous slide as well as it is also described in the matlab
and hope you have enjoyed this lecture and I will meet you in the next lecture.
And if you want to plant with radius here this is for you will just multiply with X Y and C will R.