Question: matlab i want code and input Task 1: y=[xsin(x),for23x0xsin(x),for0x23]0 Plot the sinc function y(x) for values of x from 3/2 to +3/2. Choose an adequate

matlab i want code and input
matlab i want code and input Task 1: y=[xsin(x),for23x0xsin(x),for0x23]0 Plot the sinc

Task 1: y=[xsin(x),for23x0xsin(x),for0x23]0 Plot the sinc function y(x) for values of x from 3/2 to +3/2. Choose an adequate increment/spacing to create smooth curves. Use the find function to separate the x values and calculate the corresponding y(x). Choose adequate x and y-labels and name the resulting plot as 'The sinc function'. Task 2: In order to have a closed geometric figure composed of straight lines, the angles in the figure must add to (n2)(180) degrees, where n is the number of sides. a) Write a script file and create a vector called n from 3 to 6 and calculate the angle sum from the formulae. b) Write a script that prompts the user to select one of the following figures from a menu: triangle, square, pentagon, and hexagon. Use the input to define the value of n via a switch/case statement; then use the value of n to calculate the sum of the interior angles from the formulae above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!