Problems animating a surf plot.
이전 댓글 표시
Hello all, I am employing MATLAB to solve some basic PDEs (transport equation) using various numerical schemes. I have no problem creating a 2-d movie of the solution over time. However, when I try the same trick with surf, I either just get the plot of the final frame, or if I try to index it, I get the error:

Error using surf (line 69) Z must be a matrix, not a scalar or vector.
How can I fix this? Below I've attached my code, I appreciate all the help.
W.U.
댓글 수: 1
Image Analyst
2016년 3월 12일
편집: Image Analyst
2016년 3월 12일
Note: REQUIRES SYMBOLIC TOOLBOX (so I can't run it). I've added that to the product list.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Geometry and Mesh에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!