When I try to implement the example for solve, x is returned

When I try to implement the example for solve in the Matlab Documentation I get solx = x, rather than solx = pi/2 like in the documentation.
syms x
eqn = sin(x) == 1;
solx = solve(eqn,x)
Also, maybe unrelated, but I do have the symbolic toolbox, but vpasolve is undefined when I try to use it. I have R2016b, is the command a new one?

Answers (0)

This question is closed.

Asked:

on 11 Apr 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!