Plotting a function dynamically in a loop
- To: mathgroup at smc.vnet.net
- Subject: [mg112869] Plotting a function dynamically in a loop
- From: ABHIJIT BHATTACHARYYA <b_abhijit2k at yahoo.co.in>
- Date: Mon, 4 Oct 2010 06:06:14 -0400 (EDT)
Hi! Let us consider that I have one 3D array ex[[i,j,k]] which is computed in time loop as given here. alfa=0.3; beta=0.4; gamma== 0.5;=0A For[time=0, time<= maxtime, time++, Do[ex[[i,j,k]] = alfa*i+beta*j+gamma*k, {i,1,imax}, {j,2,jmax+1},{k,1,kmax}] (* Plot ex[[]]= dynamically *) ] What I want is that I like to plot ex[[i,j,k]] at every time step in a single plot so that plot is revealed as a movie. Is it possible in mathematica? Regs Abhijit Bhattacharyya