Borrar filtros
Borrar filtros

Trying to use ezplot but i can't seem to get it. Whats wrong with my code?

1 visualización (últimos 30 días)
Gamma = 3.567e-7;
Vi = 87;
syms V Vs d t
Stuff = sym((V-Vs)/(Vi-Vs) == erf((d)/(2*sqrt(Gamma*t))));
V = solve(Stuff,V);
Vs1 = 150;
t12 = 17;
d12 = linspace(0,0.08);
[V11] = subs(V,{Vs,d,t},{Vs1,d12,t12})';
ezplot(V11)

Respuesta aceptada

Michelangelo Ricciulli
Michelangelo Ricciulli el 27 de Feb. de 2017
If I understood correctly what you are trying to do, V11 is no more dependent on any of the initial symbols Vs, d and t. So, if the independent variable is d, and you want that it assumes its values in the interval 0-0.08, your code should be
Gamma = 3.567e-7;
Vi = 87;
syms V Vs d t
Stuff = sym((V-Vs)/(Vi-Vs) == erf((d)/(2*sqrt(Gamma*t))));
V = solve(Stuff,V);
Vs1 = 150;
t12 = 17;
[V11] = subs(V,{Vs,t},{Vs1,t12})';
ezplot(V11,[0 0.08])

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by