MATLAB: Plot x=f(y)

MATLAB C/C++ Graphics Libraryplotting

If I have a function given as x =f(y), how can I plot x as independent variable (x axsis) and y dependent variable (y axsis). I also need to control the range of both x and y.
x=y/(0.5+cos3y)

Best Answer

In MATLAB, cos3y would be written as cos(3*y)
In MATLAB, if y is a vector, instead of using / you should use ./ -- so y./something instead of y/something
You have an implicit plot, so you should have a look at fimplicit()