how do use patch in the background?
Mostra commenti meno recenti
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
Risposte (1)
Liang Zhan
il 8 Apr 2011
14 Commenti
Walter Roberson
il 8 Apr 2011
What error message does it come out with?
Liang Zhan
il 8 Apr 2011
Walter Roberson
il 8 Apr 2011
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
il 8 Apr 2011
Liang Zhan
il 8 Apr 2011
Walter Roberson
il 8 Apr 2011
How exactly are you running in the background ?
Liang Zhan
il 8 Apr 2011
Walter Roberson
il 8 Apr 2011
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
il 8 Apr 2011
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
il 8 Apr 2011
Liang Zhan
il 8 Apr 2011
Walter Roberson
il 8 Apr 2011
Have you tried the Matlab File Exchange contribution export_fig ?
Liang Zhan
il 8 Apr 2011
Liang Zhan
il 8 Apr 2011
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!