I am trying to plot x and y with y being the only unknown but I don’t what is wrong in my code please help
2 views (last 30 days)
Mischa Kim on 11 Jan 2021
the one thing I notice is that x and y are vectors. Rewrite the y-equation using the dot operator, .^ instead of just ^:
y = ..cos(theta)^2)*x.^2;
In general, please share in your questions code rather than a screen shot of the code.