Rank: 85053 based on 0 downloads (last 30 days) and 0 file submitted
photo

Alex R.

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Alex View all
Updated File Comments Rating
14 Nov 2013 Draw a filled circle Plots a filled circle with given radius, center and color. Author: Sadik

I know this is old but I wanted to note that it can be done easier and faster as follows:

t = 2*pi/N*(1:N);
fill(c(1)+r*cos(t), c(2)+r*sin(t), color);

Also note that you don't need both 0 and 2pi (they are the same polar point). Your code actually generates N+1 points.

[ depending on N, the above can be substantially faster than using linspace() + ones() + pol2cart() ]

Alex.

27 Oct 2013 savefig Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. Author: Peder Axensten

This now conflicts with 'savefig' which is included in Matlab R2013b

06 Aug 2013 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

Great package. You can safely detect Ghostscript under Windows by reading the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Artifex\GPL Ghostscript" (if 64bit) or "HKEY_LOCAL_MACHINE\SOFTWARE\Artifex\GPL Ghostscript" (if 32bit).

Use Matlab's winqueryreg() function or execute "reg" via system() to read the Windows registry.

Keep up the good work!

Contact us