Student Support Forum: 'Playing around with dynamic content' topicStudent Support Forum > General > Archives > "Playing around with dynamic content"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Matthew Titsworth 05/31/07 8:33pm I've been trying to apply the dynamic content of mathematica 6 to a model I created for some research I'm doing, however I'm having difficulty reproducing the outputh. The code I used to generate the output in mathematica is: Model[n_, t_, v_] := E^(I (2 \[Pi]/n) t v) Model[n, t, v] VPlot = ParametricPlot[{Re[Model[1, 1, v]], Im[Model[1, 1, v]]}, {v, 0, 1}, DisplayFunction -> Identity]; np = 10; vp = 1; ModelStateList = Table[{Re[Model[np, t, vp]], Im[Model[np, t, vp]]}, {t, 1, np}]; StatePlot = Table[ListPlot[{ModelStateList[[i]]}, PlotStyle -> {PointSize[.05], RGBColor[(i*.1), (i*.1), (i*.1)]}, PlotRange -> {{-1.5, 1.5}, {-1.5, 1.5}}, DisplayFunction -> Identity], {i, 1, np}]; Show[VPlot, StatePlot, DisplayFunction -> \$DisplayFunction] Which generates the output of the image atattched. The code for the dynamic content I've been able to get to work so far is: Manipulate[ ListPlot[{Table[{Re[Model[n, t, v]], Im[Model[n, t, v]]}, {t, 1, n}]}, PlotStyle -> {PointSize[.05], RGBColor[(n*.1), (n*.1), (n*.1)]}, PlotRange -> {{-1.5, 1.5}, {-1.5, 1.5}}], {n, 1, 10, 1}, {v, 0, n}] Which you'll have to run because I've not yet explored how to export the dynamically created content. You'll have to run it to see it work. As can be seen the static content is color coded where as the dynamic content is not. The color varies with v, however I can't get the points to vary in color individually, which is exceedingly important. I need to be able to reproduce the static graph from the dynamic app. Any help or ideas would be greatly appreciated. Matthew Attachment: Model Diagram.JPG, URL: ,

 Subject (listing for 'Playing around with dynamic content') Author Date Posted Playing around with dynamic content Matthew Tits... 05/31/07 8:33pm Re: Playing around with dynamic content yehuda ben-s... 06/04/07 00:53am Re: Playing around with dynamic content Matthew Tits... 06/04/07 10:25pm
 Next Comment > Help | Reply To Topic