How to solve an eaquation with a variable that occurs multiple times in the equation
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
bella bridges
el 18 de Feb. de 2021
Comentada: bella bridges
el 19 de Feb. de 2021
I am trying to use matlab to solve for sutherlands law where temperature t goes from 40 to 100 in steps of 10. Then I need to plot the results. This is what I have so far:
t0= 518.7
mu0=3.63*10^-7
t= 40:10:100
x=mu0*((t/t0)).^((1.5))*((t0+198.72)./(t+198.72))
I can solve if t occurs once, but not twice. I get errors. I haven't used matlab in a long time so I just can't find a solution or a similar issue on here. Ideas?
0 comentarios
Respuesta aceptada
Alan Stevens
el 18 de Feb. de 2021
You need to insert .* (dot *) instead of just * in the following
x=mu0*((t/t0)).^((1.5)).*((t0+198.72)./(t+198.72));
|
and just add the something like the following for plotting
plot(t,x),grid
xlabel('t'),ylabel('x')
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!