フィルターのクリア

If sin(h) has a known value, how can I find h with matlab?

1 回表示 (過去 30 日間)
Mikolaj Jankowski
Mikolaj Jankowski 2018 年 10 月 30 日
コメント済み: madhan ravi 2018 年 10 月 30 日
In a function I am trying to write, sin(h) is dependant on input variables when calling the function. Then however, function develops dependant on value of h. How can I find the value of h for if statements later in text?
Essentially:
sin(h)=max(0,sin(lat)*sin(decl)+cos(lat)*cos(decl)*cos(w_d*(t+43200)));
if h <= 0
Insd=0
else
Insd=S*(e^(-C_ext))*sin_h*(1-0.71nc);
end

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 30 日
y = sin(x)
asin(y) %gives value of x
  2 件のコメント
Mikolaj Jankowski
Mikolaj Jankowski 2018 年 10 月 30 日
Thank you :D
madhan ravi
madhan ravi 2018 年 10 月 30 日
Nie ma za co XD

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by