|
On 5/28/2012 6:30 PM, nero wrote:
> I am working on a project in which I have to create a gui contain
>two buttons :one to download a map and the other to draw a circle in a fixed position
> So how can i do this .
may be use hold on? I put the center in the middle. you can change
that. I am sure there are coordinate transformations functions for
images in Matlab toolboxes to do this translation better than what I did.
-------------------------
close all;
load mandrill
image(X)
colormap(gray)
axis square
[nRow,nCol]=size(X);
r = sqrt(nRow^2+nCol^2);
c = r/3*exp((0:1/300:1)*pi*2*sqrt(-1));
hold on;
plot(real(c)+nRow/2,imag(c)+nCol/2,'r','LineWidth',2)
-----------------------------------------
screen shot on my matlab
http://12000.org/tmp/052812/plot.png
--Nasser
|