cosθ=3.1234とかのθの値ってどうゆうコードを打てば角度が求めれるのですか?あとπ表記と度表記は別のコードを使うのですか?

 Respuesta aceptada

Akira Agata
Akira Agata el 1 de Oct. de 2020

0 votos

アークコサイン(逆余弦関数)を使って求めることができます。MATLABの関数としては、acos 又は acosd になります。出力される角度θを、前者はラジアン、後者は度として出力します。
% 例: cos(θ) = 0.5 のθを求める
theta_rad = acos(0.5); % = 1.0472 (=pi/3) [rad]
theta_deg = acosd(0.5); % = 60.0 [度]
ちなみに、cosθ=3.1234 だとθの値は角度として求まらない(複素数になる)ですが、合ってますでしょうか?

1 comentario

隆信 大島
隆信 大島 el 15 de Oct. de 2020
ありがとうございます。
0.312...の見間違えでした。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Phased Array Design and Analysis en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Oct. de 2020

Comentada:

el 15 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!