On 01/31/2012 05:46 PM, Renzo Del Fabbro wrote:
> my inputs are
> --------------------------------------
>
> eq_1:'diff(v(t),t)=-i(t)/C-v(t)/(R*C)$
> eq_2:'diff(i(t),t)=-i(t)*R/L+v(t)/L$
> [R,L,C,v0,i0]:[2,1e-6,1e-6,20,10] $
> atvalue(v(t),t=0,v0) $
> atvalue(i(t),t=0,i0) $
> s:desolve([eq_1,eq_2],[v(t),i(t)]),expand,numer;
>
> wxplot2d([rhs(s[1])],[t,0,8e-6],[legend,"v(t)","i(t)"],
> [gnuplot_preamble,"set grid"],[xlabel,"t / us"]);
>
> --------------------------------------
>
> and I'd like to know if there was a way to modify just wxplot2d parameters.
OK, I do not how to make gnuplot change the values displayed in the axes but
I still think that it is a more elegant solution to work with ?s from
the begining:
eq_1:'diff(v(t),t)=-i(t)/C-v(t)/(R*C)$
eq_2:'diff(i(t),t)=-i(t)*R/L+v(t)/L$
[R,L,C, v0,i0]:[2,1,1,20,10] $
atvalue(v(t),t=0,v0) $
atvalue(i(t),t=0,i0) $
s:desolve([eq_1,eq_2],[v(t),i(t)]),expand,numer;
plot2d([rhs(s[1])],[t,0,8],[legend,"v(t)","i(t)"],
[gnuplot_preamble,"set grid"],[xlabel,"t / us"]);
Since RC and L/R both have units of time, if you measure capacitance in
?F, inductances
in ?H and resistances in Ohms, the unit that will be implicitly used for
time is ?s.
Regards,
Jaime