MathGroup Archive 2007

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

Search the Archive

Re: Manipulate a complex expression


Hi Daniele,

On Jun 16, 4:04 am, Daniele <d.mal... at gmail.com> wrote:
<snip>
>  if I define VolumeFraction (eg. VolumeFraction=0.1) and plot
> Re[MeasuredCMF] vs. f, I have no problem.
> But I am unable to successfully do the following (I get a blank plot)
>
> Manipulate[
>  LogLinearPlot[
>   Evaluate[Re[MeasuredCMF]], {f, 1 10^5, 1 10^9}], {{VolumeFraction,
>    0.2}, 0.1, 0.5}]
<snip>

You pretty much have it.  You just need to force Mathematica to use
the local variable from the Manipulate.  One easy way is to use
ReplaceAll to rename VolumeFraction to a temporary variable
(VolumeFraction2):

Manipulate[
 LogLinearPlot[
  Evaluate[
   Re[MeasuredCMF] /. {VolumeFraction -> VolumeFraction2}], {f, 10^5,
   10^9}],
 {{VolumeFraction2, 0.2}, 0.1, 0.5}]

Good luck!



  • Prev by Date: Mathematica 6 and normal distribution?
  • Next by Date: Re: a beginner's question
  • Previous by thread: Manipulate a complex expression
  • Next by thread: Re: Manipulate a complex expression