How do I pull a value out of a different equation @ a specific value
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Bryce Johnson
el 3 de Oct. de 2019
Comentada: Bryce Johnson
el 3 de Oct. de 2019
I am trying to find the value of D @ time Tmin but in my mind I think it should go like Tmin(D) but it says indices must be positive intgers or logical values.
function[Tmin,Dt] = Tension(Lb,Lc,W,Dmin,Dmax)
D = linspace(Dmin,Dmax,20);
T = (Lb*Lc*W)./(D.*sqrt(Lc^2-D.^2));
Tmin = min(T);
Dt = T(Tmin);
0 comentarios
Respuesta aceptada
James Tursa
el 3 de Oct. de 2019
Editada: James Tursa
el 3 de Oct. de 2019
[Tmin,k] = min(T);
Dt = D(k);
Más respuestas (0)
Ver también
Categorías
Más información sobre Argument Definitions 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!