I'm struggling to plot this graph
Mostrar comentarios más antiguos
I have this equation

with the variables

and i'm trying to get this plot

I keep getting a straight line.I'm not sure what I have done wrong.
Can anyone help me and copy and paste the input which is needed to form this plot.
thanks for the help in advance.
Respuesta aceptada
Más respuestas (1)
a1 = 0.58;
a2 = 0.47;
Tstar = 283;
dT = 24;
aeq = @(T) a1 - 0.5*a2 *(1 + tanh((T-Tstar)/dT))
T = 250:310;
plot(T, aeq(T))
1 comentario
Hoi Tsim
el 14 de Oct. de 2015
Categorías
Más información sobre 2-D and 3-D Plots 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!
