I am new to MATLAB and currently working on my homework assignment. I am trying to declare the x variable as the following:
x
Create a linearl
You can use linspace as follow:
linspace
x = linspace(-pi, pi, 200);
check this out for an example: https://www.mathworks.com/help/matlab/ref/linspace.html