Hi,I don't understand why this is not right,I am a completely new learner!
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Shican Liu
el 11 de Nov. de 2015
Comentada: Shican Liu
el 11 de Nov. de 2015
T=1; lamda=0.4; gamma=1.2; theta=0.1; x=1:100; t=0.1; U=lamda/(0.5*theta^2+lamda); V0(x)=U.*exp(-gamma.*x)-(1-U).*exp(-(0.5.*theta.^2+lamda).*(T-t)).*exp(-gamma.*x); plot3(V0(x),x)
the error is: Error using plot3 Not enough input arguments.
0 comentarios
Respuesta aceptada
Thorsten
el 11 de Nov. de 2015
plot3 assumes three arguments. Use plot instead
plot(x, V0)
0 comentarios
Más respuestas (1)
Torsten
el 11 de Nov. de 2015
T=1;
lambda=0.4;
gamma=1.2;
theta=0.1;
x=1:100;
t=0.1;
U=lambda/(0.5*theta^2+lambda);
V0=U*exp(-gamma*x)-(1-U)*exp(-lambda/U*(T-t))*exp(-gamma*x);
plot(x,V0)
Best wishes
Torsten.
Ver también
Categorías
Más información sobre Special Functions 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!