MATLAB: How to solve this equation

cossinus

Hi everyone,
I want to solve this equation in Matlab. Until now I have the following code:
a=18
b=60
c=76.7
syms x
solx=solve('cos(x).*(a.*sin(x)+b)=c','x')
I get next error: Check for missing argument or incorrect argument data type in call to function 'solve'.
Error in Untitled (line 8)
solx=solve('cos(x).*(a.*sin(x)+b)=c','x')
I dont know what it is wrong, can anybody help me?
Any help is appriciated.

Best Answer

a=18
b=60
c=76.7
syms x
eqn = cos(x).*(a.*sin(x)+b) == c
solx=solve(eqn)