I asked a similar question here the other day, but I could not make myself clear. Then I ask once again.
I wanted to visualize a noise model on CCD sensors by Mathematica (Mine is ver.9). The following was what I executed:
noise := RandomVariate[PoissonDistribution[10], {20, 20}];
plotnoise = DiscretePlot3D[noise[[i, j]], {i, 1, 20}, {j, 1, 20}, ExtentSize -> Full]
I got an error message besides the expected plot: Part::pspec.
What does the error message mean?
How can I circumvent the error?
Furthermore, I'm thinking to use Manipulate to simulate the effect of stacking of a lot of noise frames and embed it on my web page by use of Wolfram CDF:
noisemean[n_Integer] := Total[Table[noise, {n}]]/n;
noisestack = Manipulate[DiscretePlot3D[noisemean[m][[i, j]], {i, 1, 20}, {j, 1, 20}, ExtentSize -> Full], {m, 1, 256, 1, Appearance -> "Labeled"}]
So, definitely I want to remove the error.

DiscretePlot3Din your version ofMathematicainclude a Hold attribute? I.e. report on the result of evaluating:Attributes[DiscretePlot3D]. – MarcoB Jul 05 '16 at 17:39{Protected, ReadProtected}. What does it mean? I'm a beginner...sorry – Taiki Bessho Jul 05 '16 at 17:45noisewith aSetDelayedinstead ofSet? Every time you call for a valuenoise[[i,j]], it builds up 400 random numbers only to use one of them. – Jason B. Jul 05 '16 at 17:55=is better. However, for the 2nd portion of my code, it has to sum up every different noise frames each time. For the purpose, I used SetDelayed:=instead of Set=. Maybe not smart way... – Taiki Bessho Jul 05 '16 at 18:03Attributes[DiscretePlot3D]from a session where I haven't runDiscretePlot3D, then it returns the 2-element list that Taiki wrote above. But if I ask for the attributes after running aDiscretePlot3Dexample, then it gives me theHoldAllas well. I get this in version 9 and 10 – Jason B. Jul 05 '16 at 18:16