Why the result of acosd (0) only 90?

3 次查看(过去 30 天)
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

采纳的回答

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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Instrument Connection and Communication 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by