My dears please help me

مساءكم فل وياسمين

إلى أرقى مهندسين ومتخصصين

أنا طالبه قسم نظم المعلومات ولم أدرس الماتلاب بتعمق أحتاج مساعدتكم في برنامج لتقديمه

function [xo,yo]=reflect(x,y,ax
%reflect planer reflecation about an axis.
%[xo,yo]=reflect(x,y,ax)returns coordinates x0,y0 reflected about an axis
%ax.
%ax line can be inbut in one of the following modes:
%[x0 y0 x1 y1] defines a line with end coordinates (x0,y0),(x1,y1).
%[x0 y0 ANG] specifies starting point and direction of the line
% (same as[x0 y0 x0+cos(ANG) y0+sin (ANG)])
% [x1 y1] assumes beginning at(0,0)
% (same as [0 0 x1 y1])
% ANG (scalar)specifies direction
% (same as [0 0 cos(ANG) sin(ANG)].
% ANG must be expressed in radians (use ANG*pi/180 if ANG is expressed in
% degrees).
if nargin==0,help reflect,return,end
if nargin<3
error(‘not enough input arguments’)
end
sz=size(x);
if all( size(y)==fliplr(sz)),y=y’;end
if ~all(size(y)==sz)
error('x,y must have the same size ')
end
ax=ax’;
ax=ax(: )';
la=length(ax);
if la==3
ax=[ax(1:2) ax(1)+cos(ax(3)) ax(2)+sin(ax(3))];
elseif la==2
ax=[0 0 ax];
elseif la==1
ax=[0 0 cos (ax) sin(ax)];
end
nrm=ax([3 4])-ax([1 2]);
len=sqrt(nrm*nrm’);
nrm=nrm/len;
x=x-ax(1);
y=y-ax(2);
p=xnrm(1)+ynrm(2);
xo=x-nrm(1)*p;
yo=y-nrm(2)*p;
xo=-xo+nrm(1)*p+ax(1);
yo=-yo+nrm(2)*p+ax(2);
plot(xo,yo);

Explain the following script file reflect

أبي شرح مبسط للبرنامج أقدمه في (الريبرزينتيشن)

what are the different expected output cases

النتائج المتوقعه للبرنامج :frowning:

i will not forget your help never

with all my love

والله ان حالتك مثل حالة اختي
الله يعينكم جميع
وانشاء الله بتلاقون الحل