QUESTION 3: (20 Points)
a)
Consider the mathematical function y=f(x)=x² over the interval [-5, 5]. Write MATLAB code
to:
1. Generate a vector of x values in the specified interval.
2. Calculate the corresponding y values using the function f(x)=x².
3. Create a 2D plot (line plot) to visualize the function.
Include axis labels, a title, and a grid in your plot. Additionally, use different line styles,
colors, and markers for the plot.
b) Write a script to show that a circle can be represented by x = sin(t) and y = cos(t).
t varies from 0 to 2*pi. You should create values for t and plot the values of x and y
using simple x-y plot.