I haven't used subversion before, so this might be an easy question for you. I just installed subversion and your script and it seems to work fine. But I get a "some_file is not a working copy" message if I want to check in some_file. What am I doing wrong?
To be honest, I am not quite sure what this function is supposed to do different from this statement:
OutPatternMatrix = spones(InPattern).*InMatrix;
Your function help doesn't help much to clarify.
Moreover, your function returns an error for following example:
>> InPattern = sprand(5,5,0.4);
>> InMatrix = sprand(5,5,0.4);
>> OutPatternMatrix = sppattern(InPattern,InMatrix)
??? Error using ==> sparse
Vectors must be the same lengths.
Error in ==> sppattern at 30
OutPatternMatrix = sparse(iP,jP,sT,m,n);
Thank you for this great function! Just one question: even when I use the -native option the final resolution of the image is different than the size of the matrix that has gone into the image. E.g., I have a 2048x2048 image, but after using export_fig (with the -native option) it returns a 2052x2052 image [currently using '-m4 -bmp -native' as options]. If I don't use that option it returns a 3176x3176 image.
Do you have a suggestion as how to get the exported image to match the size of the matrix?
22 Oct 2014
Exports figures nicely to a number of vector & bitmap formats.
With a code perfectly working on OS 10.9.5 and Matlab 2014a, I got the exact same issue than Adam, but on a OS X 10.10 (final release!) with Matlab 2014b and Ghostscript 9.15...
Please find something ;-)
Error using eps2pdf (line 107)
Error: /undefined in definefont
CMSY10 --dict:14/15(L)-- Font
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
%stopped_push 1951 1 3 %oparray_pop 1950 1 3 %oparray_pop --nostringval-- 1934 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 1901 2 3 %oparray_pop
--dict:1188/1684(ro)(G)-- --dict:0/20(G)-- --dict:121/200(L)--
Current allocation mode is local
Last OS error: Invalid argument
Current file position is 71195
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
Error in export_fig (line 435)
eps2pdf(tmp_nam, pdf_nam, 1, options.append, options.colourspace==2, options.quality);