jtiernan2008
asked on
Can someone advise how to draw a circle in Matlab
Please find the attached code
I want to draw a circle of 1 meter radius at f1 and a 11 meter at f2
I have tried to search in the help files but can't figure it out...
your help would be really appreciated.
I want to draw a circle of 1 meter radius at f1 and a 11 meter at f2
I have tried to search in the help files but can't figure it out...
your help would be really appreciated.
clear % all variables
figure(1), hold off
set(gca,'FontSize',14) % adjust fontsize
Line1X=[-10,10];
Line1Y=[-10,-10];
Line2X=[10,0];
Line2Y=[-10,10];
Line3X=[-10,0];
Line3Y=[-10,10];
line(Line1X,Line1Y)
line(Line2X,Line2Y)
line(Line3X,Line3Y)
text(-10,-10,'\leftarrow f1 (x1,y1)','VerticalAlignment','middle','HorizontalAlignment','left')
text(10,-10,'\leftarrow f2 (x2,y2)','VerticalAlignment','middle','HorizontalAlignment','left')
text(0,10,'\leftarrow f3 (x3,y3)','VerticalAlignment','middle','HorizontalAlignment','left')
screener.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for your response...
I get an error
??? Undefined function or method 'circle' for input arguments of type 'double'.
Error in ==> triangle at 23
H=circle(center,radius,N,' r-');
I get an error
??? Undefined function or method 'circle' for input arguments of type 'double'.
Error in ==> triangle at 23
H=circle(center,radius,N,'
ASKER
ah wait I see I am to download from the link above :)
ASKER
thanks a million
that's really useful
that's really useful
http://www.mathworks.com/matlabcentral/fileexchange/2876