how to code equation this equation?
Mostrar comentarios más antiguos
not sure how to code this equation:

I have tried this:
nz = @(z) n(z0)*(Tz0/Tz)^(1+g).*exp(-uc(z))
but I think it is not right.
Respuesta aceptada
Más respuestas (1)
Cesar Cardenas
el 15 de Mzo. de 2022
2 comentarios
Voss
el 15 de Mzo. de 2022
You have an extraneous * there which is causing the error. Change that line to:
a = exp(1./(2*Hn)*z);
exp() is a function. Doing exp*(something) is the same as exp()*(something), i.e., calling exp() with no inputs, which is what the error is saying.
Cesar Cardenas
el 15 de Mzo. de 2022
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


