I had a quick look at the code, and I suggest the following changes (just a guess).
I believe the code has worked as expected, but the duration of the animation is only about 1/10th of a second.
To test the hypothesis, change
to make 10 times more frames. If it stays for about a second, then it is the problem.
The other "problem" that it stays white at the end is probably the endpoint (8π) puts everything to zero, so it is/may be coloured white.
Try changing the endpoint to, say
8.5π or 8.25π and see if it makes a difference.
Let me know how it goes.
I tried both and both results leave me with the same result, It just flashes real quick and then turns white... I even tried a=0:pi/1000000000:8*pi, it stays for a little bit longer but then turns white....
I think it's an issue with something else... what I'm not exactly sure as it's strange that something does appear but then quickly disappears...
A couple of things you could try:
Hopefully this will update every frame of the image.
2. put a finer grid, such as
instead of 50.
Sorry that I cannot be more definite because I don't have access to Matlab, especially the plotting part.
Same thing. I wounder if I'm suppose to be using the surfz function and not some other 3 dimensional plotting function?
<_< forgot the dot and got rid of the axis tight
Great! I missed that too (the dot).
Computer Science - MATLAB - In a problem I had to create a animation of the ...
Thank You MathMate - Thank you for assisting me with my MATLAB question. If I ...
pre calc trig check my work please - sin x + cos x -------------- = ? sin x sin ...
Computer Science - MATLAB - thanks mathmate. It's way above my head to. I got ...
algebra - Can someone please help me do this problem? That would be great! ...
math - find all solutions in the interval [0,2 pi) sin(x+(3.14/3) + sin(x- 3.14/...
tigonometry - expres the following as sums and differences of sines or cosines ...
trig!! - Sin(X-y)sin(x+y)=sin^2 x - sin^2 y work on one side only...so i worked ...
Trig - Sin(X-y)sin(x+y)=sin^2 x - sin^2 y work on one side only...so i worked on...
TRIG! - Posted by hayden on Monday, February 23, 2009 at 4:05pm. sin^6 x + cos^6...