Why the result of acosd (0) only 90?

3 visualizaciones (últimos 30 días)
Diah
Diah el 3 de Dic. de 2012
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 comentarios
Andrei Bobrov
Andrei Bobrov el 3 de Dic. de 2012
acosd(0) + [0, 180]
Diah
Diah el 3 de Dic. de 2012
thx andrei

Iniciar sesión para comentar.

Respuesta aceptada

Pedro Villena
Pedro Villena el 3 de Dic. de 2012
Editada: Pedro Villena el 3 de Dic. de 2012
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 comentarios
Diah
Diah el 3 de Dic. de 2012
I'm sorry Pedro, I have run your code, but I don't understand about your code. What is that mean?
Diah
Diah el 3 de Dic. de 2012
oh..okay. thank you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Instrument Connection and Communication en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by