MATLAB: How to write this function

matlab function

I have to write this function in Matlab but I don't know what I did wrong:
My solution:
y=(cos(35)-sec^2(35))/tan(70)
What did I do wrong?

Best Answer

  • y=(cosd(35)-secd(35)^2)/tand(70)