MATLAB: Array and inverse tan

array

Good evening,
The following line of code was working, until I added in the inverse tan that I missed writting in.
Adding the 'atand' is producing an error in this line. I've tried both 'atand' and 'atand.* ' and both ways produce an error.
How can I fix this issue?
Thank you for your assistance!
phata_values = atand.*[phataY./phataX];

Best Answer

I think you do not unerstand MATLAB. I'd start with taking the Onramp tutorial. atand of what?
atand is a FUNCTION. You need to pass it arguments. For example, Perhps you intended to write this:
phata_values = atand(phataY./phataX);
Or perhaps you wanted to write
phata_values = atand(z).*(phataY./phataX);
where z is some unknown variable that you never told us about.