Expression (equation)
Mostrar comentarios más antiguos
Hello, how to define an expression, for example 1-e^(-At) where I can define and change parameters A and t and than figure changes of the curve in a graph.
Thanks
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 8 de Dic. de 2011
And to add on to Paulo's example:
t=0:0.1:100; % Time vector
A=0.1;
y = 1-exp(-A*t); % Value of A that you can change
H = figure;
plot(t,y)
linkdata(H,'on');
shg;
pause(2) %watch the magic in 2 seconds
A = .8;
y = 1-exp(-A*t);
if you want it to automagically update when you change A or y.
3 comentarios
Paulo Silva
el 8 de Dic. de 2011
nice one :)
Jan
el 8 de Dic. de 2011
Jan
el 8 de Dic. de 2011
Categorías
Más información sobre Exponents and Logarithms 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!