필터 지우기
필터 지우기

Why the result of acosd (0) only 90?

조회 수: 2 (최근 30일)
Diah
Diah 2012년 12월 3일
Why the result of acosd (0) only 90? In mathematics it should be 90 and 270. Can anybody explain to me why the matlab output is only 90? Thx b4 for the help
>> acosd(0)
ans =
90
  댓글 수: 2
Andrei Bobrov
Andrei Bobrov 2012년 12월 3일
acosd(0) + [0, 180]
Diah
Diah 2012년 12월 3일
thx andrei

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

채택된 답변

Pedro Villena
Pedro Villena 2012년 12월 3일
편집: Pedro Villena 2012년 12월 3일
ACOSD is a SISO function that returns only one output value for each input value (real or complex).
You could see the behaviour of acosd in real, imaginary, absolute and phase plane.
x = [-5:0.00001:5];
subplot(2,2,1), plot(x,real(acosd(x)));
title('y = real(acos(\alpha))'),xlabel('\alpha [º]'),ylabel('y'),
subplot(2,2,2), plot(x,imag(acosd(x)));
title('y = imag(acos(\alpha))'),xlabel('\alpha [º]'),ylabel('y'),
subplot(2,2,3), plot(x,abs(acosd(x)));
title('y = abs(acos(\alpha))'),xlabel('\alpha [º]'),ylabel('y'),
subplot(2,2,4), plot(x,phase(acosd(x)));
title('y = phase(acos(\alpha))'),xlabel('\alpha [º]'),ylabel('y'),
  댓글 수: 2
Diah
Diah 2012년 12월 3일
I'm sorry Pedro, I have run your code, but I don't understand about your code. What is that mean?
Diah
Diah 2012년 12월 3일
oh..okay. thank you.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by