Question: Problem 2: Make a code by performing following steps Define a radius r with r = 2 Define an empty matrix A. Define a row
Problem 2:
Make a code by performing following steps
- Define a radius r with r = 2
- Define an empty matrix A.
- Define a row vector x whose first element is -4, and the increment size is 0.025 and last element is 3. So, the first element will be -4 and second element will be -3.9750 so on and so forth.
- Make a for loop that saves (rcosx )2 and in Matrix A on every loop.
- Make a plot by calling and from the Matrix A and plot should be between values of and values of . So, should be on x-axis and should be on y-axis.
Note: The empty matrix should be defined outside for loop
Note: There is multiplication happening between r and that is and multiplication happening between r and that is .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
