Problem with surf plot
조회 수: 8 (최근 30일)
이전 댓글 표시
Dear all. I'm trying to create a 3D plot with surf function. The code is:
M=A/B;
v(1,:)=u01;
for n=2:length(t)
for j=1:length(x)
v(n,j)=M(n-1,j)*v(n-1,j)';
end
end
figure(1)
surf(x,t,v)
M is a matrix 201x201, t is a vector 1x101 .and x is another vector 1x201. u01 is an initial condition and it is 1x201. So, there aren't syntax error but the plot is uncorrected. I attach the file. Thanks all.
댓글 수: 7
Image Analyst
2016년 12월 10일
Get rid of the excess black lines by setting the edge color to none:
surf(x,t,v, 'EdgeColor', 'none');
Other than that, I can't run your code because there are too many variables undefined, like M, A, B, u01, and t. If you want my help, you'll have to supply code I can run.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!