Hello, Roger Stafford .
I visit this site again because of problem.
Could you plz help me again??
I typing like this in matlab.
pro (enter)> 0(center of coordinates x) >0(center of coordinates y)>1(start point of x)>1(start point of y)>90 (degree)
but when I typing like this. Our graph didn`t start from start point. our graph only start (1,0).
T,.T
this is mfile...
===============================================
function pro(xc,yc,x1,y1,deg)
xc = input( ' center of coordinates x : ' );
yc = input( ' center of coordinates y : ' );
x1 = input( ' start point of x : ' );
y1 = input( ' start point of y : ' );
deg = input( ' degree : ' );
r=sqrt((x1xc)^2+(y1yc)^2);
deg1=atan((y1yc)/(x1xc));
if x1 >= xc && y1 > yc, deg1 = deg1;end
if x1 < xc && y1 >= yc, deg1 = 180 + deg1;end
if x1 <= xc && y1 < yc, deg1 = 180 + deg1;end
if x1 > xc && y1 <= yc, deg1 = 360 + deg1;end
deg3 = linspace(deg1,(deg1+deg));
x1 = xc + r*cos((deg1)*pi/180);
y1 = yc + r*sin((deg1)*pi/180);
x2 = xc + r*cos((deg+deg1)*pi/180);
y2 = yc + r*sin((deg+deg1)*pi/180);
xp = xc + r*cos(deg3*pi/180);
yp = yc + r*sin(deg3*pi/180);
d = linspace(0,2*pi);
plot(xc + r*cos(d), yc + r*sin(d),'.');
hold on
plot(xc,yc,'O');
hold on
plot(x1,y1,'O');
hold on
plot(x2,y2,'O');
hold on
plot(xp,yp,'.');
hold on
grid on;
