Equation with time dependent variable

19 visualizaciones (últimos 30 días)
Luis Morales
Luis Morales el 3 de Dic. de 2016
Respondida: bio lim el 3 de Dic. de 2016
Hi, I need to solve this equation y(x)=2*exp(-x)/(p*n)
In which p is a range of values already given and n is a constant that I have already defined, and x = time. How can I define x to be time to solve this equation? y is said to be a function of p and n

Respuestas (1)

bio lim
bio lim el 3 de Dic. de 2016
p = -10:10; % range of values
n = 2; % constant
for j = 1:length(p) % We find y at each, p
for t = 1:10 % time loop
y(t,j)=2*exp(-t)/(p(j)*n)
end
end

Categorías

Más información sobre Mathematics and Optimization 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!

Translated by