
Use Matlab to draw the picture Krillin from the picture that I provided by only changing the value for the script down below.
figure(1)
x(1:2,1)=[1;0];
plot(x(1), x(2),'*');
grid on; hold on;
axis([-15 15 -15 15]);
k=1;
Inc=1;
for j=1:Inc:360;
x(1:2,k+1)=[cosd(Inc) -sind(Inc);sind(Inc) cosd(Inc)]*x(1:2,k);
plot(x(1,k+1), x(2,k+1),'^');
k=k+1;
%for j=1:Inc:360;
%x(1:2,k+1)=[cosd(Inc) -sind(Inc);sind(Inc) cosd(Inc)]*x(1:2,k);
%plot(x(1,k+1), x(2,k+1),'^');
%k=k+1;
%pause();
end
for k=1:Inc:360;
y1(1:2,k)=[1.5 0;0 3]*x(1:2,k);
plot(y1(1,k),y1(2,k),'^')
%for k=1:Inc:360;
%y1(1:2,k)=[1.5 0;0 3]*x(1:2,k);
%plot(y1(1,k),y1(2,k),'^')
%pause(0.1);
end
for k=1:Inc:360;
y2(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[7;5];
plot(y2(1,k),y2(2,k),'^')
%for k=1:Inc:360;
%y2(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[7;5];
%plot(y2(1,k),y2(2,k),'^')
%pause(0.1);
end
for k=1:Inc:360;
y3(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[-7;5];
plot(y3(1,k),y3(2,k),'^')
%for k=1:Inc:360;
%y3(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[-7;5];
%plot(y3(1,k),y3(2,k),'^')
%pause(0.1);
end
for k=225:Inc:315
y4(1:2,k)=x(1:2,k)*5-[0;5];
plot(y4(1,k),y4(2,k),'^')
%for k=45:Inc:135
%y4(1:2,k)=x(1:2,k)*5-[0;15];
%plot(y4(1,k),y4(2,k),'^')
%pause(0.1);
End
Go from attached demo pic to attached pic of Krillin



Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 5 images

- 3. Implement in python. Consider the sample size of N=25 drawn from a normal distribution with mean 50, and standard deviation of 2. Repeat the process 200 tines. Draw the sampling distribution of sample mean. what is the mean of the sampling distribution of the sample mean and standard distribution of the sample mean? How do that compare with population mean and standard deviation.arrow_forwardConsider the following code: x = [1 2 3 4 5]; y = [4 1 2 7 9]; comp = x > y; added = [x + y, 2]; What types of variables will 'comp' and 'added' be? How many values might they contain? Explain why in a sentence or two. In MatLabarrow_forwardWrite a small piece of pseudo-code for generating a histogram H[L] for an intensity image I[YDIM][XDIM], where L is the total level of intensities of the image, H is the histogram array, XDIM * YDIM are the size of the image, and I[i][j] is the intensity value of the pixel at location (i,j), with i = 1, …, YDIM, and j = 1,…, XDIM. You might choose to use a certain program language that you are familiar with to write the code. You don’t have to compile the code.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





