Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB Question 3. [70 points) 1. [15 points] A circle is a set of points with coordinates x and y given by x=r cos(1) y
MATLAB
Question 3. [70 points) 1. [15 points] A circle is a set of points with coordinates x and y given by x=r cos(1) y = r sin() where r = 0..27. Write a short script to plot a circle by first creating a vector t with 120 elements, and from t create vectors x and y and then plotting them with the plot command. Assume r is known. th port 2 x = cost(t)*r; (9 2. [15 points) Write a short script that writes in the command window a vector V of real num- bers where every number except the last is followed by a comma and a space. The last number should be followed by a new line. There should be two digits after the decimal point. You do not know the length of the vector V. Do it using a for loopStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started