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];

댓글 수: 1

David Goodmanson
David Goodmanson 2021년 1월 11일
편집: David Goodmanson 2021년 1월 11일
Hi Jocelyn,
try atand(phataY./phataX). Even better, if you want a four-quadrant version of atan, use atan2d(phataY,phataX)

댓글을 달려면 로그인하십시오.

 채택된 답변

John D'Errico
John D'Errico 2021년 1월 11일

0 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2021년 1월 11일

편집:

2021년 1월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by