how do use patch in the background?
이전 댓글 표시
I know matlab has patch function, which is patch(X,Y,Z,C) creates a patch in 3-D coordinates. If the coordinate data does not define closed polygons, patch closes the polygons. The data can define concave or intersecting polygons. However, if the edges of an individual patch face intersect themselves, the resulting face might be only partly filled. In that case, it is better to divide the face into smaller polygons.
I can use it to plot my figure normally, but the question is I need to do this work in the background (something like use patch to plot the figure(no display), then save the figure as jpg or eps in the background, then only display the jpg or eps.)
can anyone help me? Thanks,
LZ
답변 (1개)
Liang Zhan
2011년 4월 8일
댓글 수: 14
Walter Roberson
2011년 4월 8일
What error message does it come out with?
Liang Zhan
2011년 4월 8일
Walter Roberson
2011년 4월 8일
I ran the code with XX, YY, ZZ, and C each set to different rand(1,53), and had no problems in 2008b on Linux-64.
Liang Zhan
2011년 4월 8일
Liang Zhan
2011년 4월 8일
Walter Roberson
2011년 4월 8일
How exactly are you running in the background ?
Liang Zhan
2011년 4월 8일
Walter Roberson
2011년 4월 8일
Undefined function or variable sphere_tri
The missing mask.mat and ack1.mat are also going to cause problems for other people wishing to debug your code.
Walter Roberson
2011년 4월 8일
I tried switching to
set(h,'Renderer','painters')
in my sample code. It is taking a long time to execute; hard to say yet ha terminate.
Liang Zhan
2011년 4월 8일
Liang Zhan
2011년 4월 8일
Walter Roberson
2011년 4월 8일
Have you tried the Matlab File Exchange contribution export_fig ?
Liang Zhan
2011년 4월 8일
Liang Zhan
2011년 4월 8일
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!