Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone please help with parts 1 and 3 only. Thanks! What I have so far for

ID: 3577267 • Letter: C

Question

Can someone please help with parts 1 and 3 only. Thanks!

What I have so far for 1:

t = linspace(0,8*pi,200);
x = exp(-z/20).*cos(z);
y = exp(-z/20).*sin(z);
z = t;
plot3(x,y,z)
grid on;
hold on;
comet3(x,y,z);
box on; % Draw box around plot

for 3:

colorMap = [
0, 0, 0; % First element = black
1, 1, 1; % White
1, 0, 0 % Red
1, 1, 0; % Yellow
0, 1, 0; % Green
0, 0, 1; % Blue
1, 0, 1]; % Purple
rowBuffer = [ 1, 2, 3, 4, 5,6,7,8];
image2D = [rowBuffer;
circshift(rowBuffer',0)'; % Shifts to left 1
circshift(rowBuffer',6)']; % Shifts to left 2
  
image(image2D) % Use the 'image' function to
% display the image array
axis off % Remove axis ticks and numbers
axis image % Set aspect ratio to obtain square pixels
colormap(colorMap) % Sets the colormap for the figure

For all parts of this assignment you are to include your last name in the filename and also to include your full name in the comments of the file along with assignment description like 2.1 etc.... In addition, you should use good programming style in writing your code so that it is easy to read and understand. This means you need to have comments with the code and you need to include printouts that also describe or show the outputs. So some formatting what is output is Important 1. Fun With 3D Plots For this part of the assignment you will write a script that creates an animated 3D line plot. You are to use: a. z is a line space that goes from 0 to 8Tu ith 200 increments b. x e 20 cos(z) z/20 sin (z) d. have the plot axes go from: x and y from -1 to ,and z from 0 8 the function e. have the grid on and have full box style next do hold on and the use comet3 to animate. You can also try to use vis3d f Good luck You are to save your script and upload to the assignment in Blackboard 2. Text Objects and Figures For create the scripts on the attached sheets Example 5 this 06a and 5-06b. For b after getting it working create labels and a title You are to save your script and upload to the assignment in Blackboard 3. Indexed Images and Color Maps- For this part of assignment you are to create an the indexed image with a color map. The color map is to have the following colors positions 1 7: Black, White, Red, Yellow, Green, Blue, and Purple. Your image is to be a 3x4 array with colors Black, Red, Black, White; Green, Blue, Green, Yellow; Black, Purple, Black, Blue and upload to the assignment in Blackboard inn

Explanation / Answer

#include<stdio.h>
#include<conio.h>
#include<math.h>
float f(float x)

void main()

else
  
}
ans=h/3*(y[0]+y[n]+4*so+2*se);
printf(" final integration is %f",ans);
getch();
}

#include<stdio.h>
#include<conio.h>
#include<math.h>
float f(float x)

void main()

else
  
}
ans=h/3*(y[0]+y[n]+4*so+2*se);
printf(" final integration is %f",ans);
getch();
}

#include<stdio.h>
#include<conio.h>
#include<math.h>
float f(float x)

void main()

else
  
}
ans=h/3*(y[0]+y[n]+4*so+2*se);
printf(" final integration is %f",ans);
getch();
}

#include<stdio.h>
#include<conio.h>
#include<math.h>
float f(float x)

void main()

else
  
}
ans=h/3*(y[0]+y[n]+4*so+2*se);
printf(" final integration is %f",ans);
getch();
}