Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: manipulate time

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114763] Re: manipulate time
  • From: Themis Matsoukas <tmatsoukas at me.com>
  • Date: Thu, 16 Dec 2010 05:49:06 -0500 (EST)

If you want to scan the effect of r, then use r as the variable in Manipulate. You must then supply the values for k, n (or you can add them as manipulated variables).

Manipulate[
 k = 2;
 n = 10;
 sol = DSolve[{\[Theta]'[t] == k i[t], 
    i'[t] == -k \[Theta][t] - r i[t] + 10, 
    i[0] == 0, \[Theta][0] == 0}, {i, \[Theta]}, t];
 ParametricPlot[Evaluate[{i[t], \[Theta][t]} /. sol], {t, 0, n}, 
  PlotRange -> {{-10, 10}, {-1, 15}}],
 {r, 1, 4, 1}
 ]

Themis


  • Prev by Date: Placing the "&"
  • Next by Date: Re: Plotting anomaly with a staircase function
  • Previous by thread: manipulate time
  • Next by thread: Re: manipulate time