1 00:00:00,880 --> 00:00:09,960 The hotel blocked ah Sophia in MATLAB so the Godfather blocking us off here in Matlab is just like you 2 00:00:09,970 --> 00:00:17,940 would write X with space y with the space Z in scientists get it back it is equal to Sofia then you 3 00:00:17,940 --> 00:00:25,250 will write to surface and inside dependencies you will write X go my wife common Z and at the end you 4 00:00:25,260 --> 00:00:26,520 will write semicolons. 5 00:00:26,520 --> 00:00:30,470 Also you will write at the end of sphere semicolon. 6 00:00:30,920 --> 00:00:37,290 Okay then surface and inside the panel says you will write X common y common Z. 7 00:00:37,590 --> 00:00:43,010 And if you want to also find the corner of the sphere. 8 00:00:43,260 --> 00:00:48,840 So suppose you want a graphing of the Sofia just like red. 9 00:00:49,080 --> 00:00:54,370 You will write inside the double quotation marks face face it. 10 00:00:54,700 --> 00:01:00,250 Okay double quotation mark face color and then inside the double quotation mark. 11 00:01:00,250 --> 00:01:01,770 All right. 12 00:01:01,810 --> 00:01:02,370 Right. 13 00:01:02,570 --> 00:01:04,240 Okay. 14 00:01:04,260 --> 00:01:08,270 You will insert the into a button then you will get the sphere. 15 00:01:08,280 --> 00:01:14,070 Remember that this Sofia will be at the center whose center is 0 0. 16 00:01:14,100 --> 00:01:14,580 Okay. 17 00:01:14,760 --> 00:01:17,540 If you will write surface X come away come on Z. 18 00:01:17,880 --> 00:01:23,160 So this means that you are trying a sphere whose center is 0 0. 19 00:01:23,310 --> 00:01:30,300 Also surface X on my wife or Mozzie inside our double quotation marks you will write face color. 20 00:01:30,570 --> 00:01:34,160 And also inside that double quotation mark you will write Green. 21 00:01:34,170 --> 00:01:36,210 Then you will get the green sphere. 22 00:01:36,630 --> 00:01:44,190 Okay if you want to just like want to read a blue sphere then you will write about a blue and if you 23 00:01:44,190 --> 00:01:45,540 want to read. 24 00:01:45,570 --> 00:01:47,600 So these are red green and blue spheres. 25 00:01:47,700 --> 00:01:54,140 Okay with the Center 0 0 and if you want 15 percent just like sentries 1 1 1. 26 00:01:54,540 --> 00:01:54,820 Okay. 27 00:01:54,840 --> 00:02:01,110 So you will get and others feels will Center's 1 1 and this is another sphere whose center is total. 28 00:02:01,110 --> 00:02:04,710 And this is and others feel whose center is 3 3. 29 00:02:04,830 --> 00:02:13,460 Okay so now we move to the matlab and yes we will draw the same code to dislike inside dependencies 30 00:02:13,500 --> 00:02:19,230 where we are writing X with the space y with space z is equal to sphere. 31 00:02:19,860 --> 00:02:21,960 And here we and write semicolon. 32 00:02:22,530 --> 00:02:26,900 And then here we are going to write this like. 33 00:02:26,900 --> 00:02:30,660 Surface is surface inside of the semicolons. 34 00:02:30,680 --> 00:02:34,010 We are writing X my Y or Z. 35 00:02:34,440 --> 00:02:34,990 Okay. 36 00:02:35,100 --> 00:02:37,760 And then we to press to enter button. 37 00:02:38,640 --> 00:02:39,640 Yes. 38 00:02:39,660 --> 00:02:42,730 So this is a sphere. 39 00:02:43,130 --> 00:02:44,170 Okay. 40 00:02:45,630 --> 00:02:46,350 Yes. 41 00:02:46,350 --> 00:02:47,250 No. 42 00:02:47,520 --> 00:02:51,660 Copy and then again paste over here and send the command window. 43 00:02:52,460 --> 00:02:54,930 Yes surface X go my way. 44 00:02:54,930 --> 00:02:55,680 Come on Z. 45 00:02:56,070 --> 00:03:03,690 And here I am inserting face face Carla inside the double quotation mark. 46 00:03:03,720 --> 00:03:04,020 Okay. 47 00:03:04,830 --> 00:03:05,810 Yes. 48 00:03:05,970 --> 00:03:08,590 No quotation marks. 49 00:03:08,700 --> 00:03:14,830 Yes and no matter the color separated by comma. 50 00:03:15,150 --> 00:03:17,070 And inside the double quotation Martin. 51 00:03:17,070 --> 00:03:17,520 Right. 52 00:03:17,540 --> 00:03:18,030 Right. 53 00:03:18,620 --> 00:03:19,300 Okay. 54 00:03:19,380 --> 00:03:23,910 And now we press the enter button and we will get the right sphere. 55 00:03:23,910 --> 00:03:25,210 This is our right for you. 56 00:03:25,800 --> 00:03:27,170 Okay. 57 00:03:27,210 --> 00:03:35,440 And uh okay if we want to change it just like we want to get green here all right. 58 00:03:35,490 --> 00:03:42,620 GREENE OK and uh insert into a button you will get a green sphere again blue sphere. 59 00:03:43,230 --> 00:03:46,650 Yes you will right the blue and and so they interpret them. 60 00:03:46,890 --> 00:03:49,700 And this is a plus for you just like okay. 61 00:03:49,800 --> 00:03:58,000 So again just like we are going to right over here registry. 62 00:03:59,030 --> 00:03:59,540 Yes. 63 00:03:59,640 --> 00:04:01,150 This is a sphere. 64 00:04:01,470 --> 00:04:06,090 And to here will change the center will keep the force center was zero. 65 00:04:06,090 --> 00:04:13,080 You don't know the center's x 1 1 7 1 2 x plus 1 y plus 1 and C plus 1. 66 00:04:14,130 --> 00:04:20,080 Okay so insert the interpreter you will get and thus feel this whole center is 1 1. 67 00:04:20,150 --> 00:04:33,060 Okay X plus two Y plus 2 and C plus 2 Yes Z plus 2 you will get three or four centuries total. 68 00:04:33,210 --> 00:04:37,690 So this is the third three years whose center is to do that again. 69 00:04:37,800 --> 00:04:41,070 Copy and paste over here and we'll join the center. 70 00:04:41,070 --> 00:04:43,640 We are taking a center three three and three. 71 00:04:43,870 --> 00:04:44,210 Okay. 72 00:04:44,220 --> 00:04:48,200 And also will change the green color green. 73 00:04:48,270 --> 00:04:52,140 Yes sir The into Britain and you will get those for you. 74 00:04:52,320 --> 00:04:58,490 Okay so this is the way hole to draw a sphere in Matlab. 75 00:04:58,640 --> 00:04:58,970 Okay. 76 00:04:58,980 --> 00:05:02,640 With different centers. 77 00:05:02,640 --> 00:05:12,000 Okay so the code has been described in the previous slide as well as it is also described in the matlab 78 00:05:12,660 --> 00:05:18,730 and hope you have enjoyed this lecture and I will meet you in the next lecture. 79 00:05:18,780 --> 00:05:28,410 And if you want to plant with radius here this is for you will just multiply with X Y and C will R.