Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Mikolaj Jankowski
Mikolaj Jankowski le 30 Oct 2018
Commenté : madhan ravi le 30 Oct 2018
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

Réponse acceptée

madhan ravi
madhan ravi le 30 Oct 2018
y = sin(x)
asin(y) %gives value of x
  2 commentaires
Mikolaj Jankowski
Mikolaj Jankowski le 30 Oct 2018
Thank you :D
madhan ravi
madhan ravi le 30 Oct 2018
Nie ma za co XD

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by