I'm making a MCML program on Maple, and I want to use the pointplot3d feature in conjunction with connect=true to show photon propagation.(adsbygoogle = window.adsbygoogle || []).push({});

For each photon run , x, y, and z values are generated.

I know how to make a pointplot3d plot given the points.

e.g.

However, the (x,y,z) values are being dynamically generated, and there are thousands of values.Code (Text):

points:= {[0,1,1],[1,-1,2],[3,0,5],[1,1,1],[1,1,2]}:

pointplot3d(points, labels=[x,y,z], connect=true, axes=BOXED);

Is there any way to put the values being generated into an array, and pointplot3d it?

If so, can you please show me sample code, or head me in the right direction?

Much thanks,

NSX

[edit]

Nvm, I got it.

My supervisor showed me a cool way to do it:

And there's other stuff too, but that's the main idea.Code (Text):

ic := ic + 1;

P||ic := [x,y,z];

print(P||ic);

with(plots):

pointplot3d({seq(P||i,i=1..250)},symbol=DIAMOND, symbolsize=10, connect=true, axes=BOXED);

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Maple Dynamic Allocation

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Maple Dynamic Allocation | Date |
---|---|

Variable summation limits in Maple or similar programs | Apr 22, 2017 |

Issues Replicating Simulink Model within MATLAB (2DOF) | Mar 11, 2017 |

[Maple] Calculating the potential produced by a charge | Feb 27, 2017 |

Mathematica Can you tell me where can i download Maple? | Jan 6, 2017 |

**Physics Forums - The Fusion of Science and Community**