مساعده لعبه في الماتلاب

بسم الله الرحمن الرحيم

بصراحه منتدي في قمه الروعه مش مجامله والله بس فيه موضوعات مفيده

بس لو ممكن معاايا لعبه بالماتلاب مش فاهمه الكود بتاعها لو حد افتهم له ممكن يساعدني

لو ما فيها احرررررررررررررررررراج

عي لعبه fire قذف نار بين عدوين

function fire1
hs=findobj(progame,
‘tag’,‘s1’); هنايعرف مسافه
ha=findobj(progame,
‘tag’,‘a1’);
hr=findobj(progame,
‘tag’,‘range’);
hf2=findobj(progame,
‘tag’,‘f2’);
hf1=findobj(progame,
‘tag’,‘f1’);
hleft=findobj(progame,
‘tag’,‘L’);
hright=findobj(progame,
‘tag’,‘R’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);

[/size][/font][/size][/font]%-------------------------------------
set(hf2,‘enable’,‘on’)
rs=get(hr,
‘string’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);
r=str2num(rs);

ths=get(ha,[/size][/font][/size][/font]‘string’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);
th=str2num(ths);

vs=get(hs,[/size][/font][/size][/font]‘string’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);
v=str2num(vs);

yr=30/130*r;

axis([0 r 0 yr]);
thr=thpi/180;
g=9.81;
[/size][/font][/size][/font]for[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] x=0:r/200:r,

y=-g/2
(x/(vcos(thr)))^2+xtan(thr);
plot(x,y,[/size][/font][/size][/font]‘y*’)
axis([0 r 0 yr])
hold
on
patch([0 r/20 r/20 0],[0 0 yr/30 yr/30],‘r’ )
patch([r-r/20 r r r-r/20],[0 0 yr/30 yr/30],
‘b’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] )

hold [/size][/font][/size][/font]off
axis off
[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]
drawnow

[/size][/font][/size][/font]if y<=0 & x>0,%Terminate for loop when hit the ground
if x>=(r-r/20) & x<=r,
cla
patch([0 r/20 r/20 0],[0 0 yr/30 yr/30],
‘r’ )
hold
on[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]
T1=rand(1,40)*r/20-r/20;
T2=rand(1,40)*r/20-r/40;
P1=rand(1,40)*r/20-r/20;
P2=rand(1,40)*r/20-r/40;

plot(r+T1,T2,[/size][/font][/size][/font]‘y.’,r+P1,P2,‘b.’)
hold
off
[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]

[/size][/font][/size][/font]else
hold on
plot(x,0,‘y*’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])

hold [/size][/font][/size][/font]off
end

break
end
end
set(hf1,‘enable’,‘off’)
set(hright,
‘visible’,‘on’);
set(hleft,
‘visible’,‘off’[FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);

[/size][/font][/size][/font]

ما الذى لم تفهميه فى الكود ؟

انا نزلت الكود من النت وهذه اول سنه نااخذ الماتلاب فا بدون احراج الكود كله مش مفهوم يعني ايش هو findobj ايش تسوي rand, hold on ,off هو باين هعليه سهل ومش معقد


بكل الحالات شكرا لانك رديت عليا

findobj locates graphics objects and returns their handles.
وفين ملفات الجرافيكس progame ؟


 
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]function[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2][COLOR=#000000] fire1[/color][/size][/font]
[SIZE=2][FONT=Courier New]hs=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'s1'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]ha=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'a1'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]hr=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'range'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]hf2=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'f2'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]hf1=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'f1'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]hleft=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'L'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]hright=findobj(progame,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'tag'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'R'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
 
 
[/size][/font][FONT=Courier New][SIZE=2][COLOR=#228b22][FONT=Courier New][SIZE=2][COLOR=#228b22][FONT=Courier New][SIZE=2][COLOR=#228b22]%-------------------------------------[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]set(hf2,[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'enable'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'on'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])[/size][/font]
[SIZE=2][FONT=Courier New]rs=get(hr,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'string'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]r=str2num(rs);[/font][/size]
 
[SIZE=2][FONT=Courier New]ths=get(ha,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'string'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]th=str2num(ths);[/font][/size]
 
[SIZE=2][FONT=Courier New]vs=get(hs,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'string'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]v=str2num(vs);[/font][/size]
 
[SIZE=2][FONT=Courier New]yr=30/130*r;[/font][/size]
 
[SIZE=2][FONT=Courier New]axis([0 r 0 yr]);[/font][/size]
[SIZE=2][FONT=Courier New]thr=th*pi/180;[/font][/size]
[SIZE=2][FONT=Courier New]g=9.81;[/font][/size]
[/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]for[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2][COLOR=#000000] x=0:r/200:r,[/color][/size][/font]
 
[SIZE=2][FONT=Courier New]y=-g/2*(x/(v*cos(thr)))^2+x*tan(thr);[/font][/size]
[SIZE=2][FONT=Courier New]plot(x,y,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'y*'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])[/size][/font]
[SIZE=2][FONT=Courier New]axis([0 r 0 yr])[/font][/size]
[SIZE=2][FONT=Courier New]hold [/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]on[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]patch([0 r/20 r/20 0],[0 0 yr/30 yr/30],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'r'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] )[/size][/font]
[SIZE=2][FONT=Courier New]patch([r-r/20 r r r-r/20],[0 0 yr/30 yr/30],[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'b'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] )[/size][/font]
 
[SIZE=2][FONT=Courier New]hold [/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]off[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]axis [/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]off[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2]
[SIZE=2][FONT=Courier New]drawnow[/font][/size]
 
[/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]if[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] y<=0 & x>0,[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#228b22][FONT=Courier New][SIZE=2][COLOR=#228b22][FONT=Courier New][SIZE=2][COLOR=#228b22]%Terminate for loop when hit the ground[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]if[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] x>=(r-r/20) & x<=r,[/size][/font]
[SIZE=2][FONT=Courier New]cla[/font][/size]
[SIZE=2][FONT=Courier New]patch([0 r/20 r/20 0],[0 0 yr/30 yr/30],[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'r'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] )[/size][/font]
[SIZE=2][FONT=Courier New]hold [/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]on[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2]
[SIZE=2][FONT=Courier New]T1=rand(1,40)*r/20-r/20;[/font][/size]
[SIZE=2][FONT=Courier New]T2=rand(1,40)*r/20-r/40;[/font][/size]
[SIZE=2][FONT=Courier New]P1=rand(1,40)*r/20-r/20;[/font][/size]
[SIZE=2][FONT=Courier New]P2=rand(1,40)*r/20-r/40;[/font][/size]
 
[SIZE=2][FONT=Courier New]plot(r+T1,T2,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'y.'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],r+P1,P2,[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'b.'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])[/size][/font]
[SIZE=2][FONT=Courier New]hold [/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]off[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2]
 
[/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]else[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]hold [/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]on[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]plot(x,0,[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'y*'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])[/size][/font]
 
[SIZE=2][FONT=Courier New]hold [/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]off[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]end[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2]
[/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]break[/color][/size][/font]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]end[/color][/size][/font]
[SIZE=2][FONT=Courier New][COLOR=#0000ff]end[/color][/font][/size]
[/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]set(hf1,[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'enable'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'off'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2])[/size][/font]
[SIZE=2][FONT=Courier New]set(hright,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'visible'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'on'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
[SIZE=2][FONT=Courier New]set(hleft,[/font][/size][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'visible'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2],[/size][/font][/size][/font][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0][FONT=Courier New][SIZE=2][COLOR=#a020f0]'off'[/color][/size][/font][/color][/size][/font][/color][/size][/font][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]);[/size][/font]
 
[/size][/font]

أرجو الاجابة على السؤال ؟

معلش بس الموقع كان مش راضي يدخل في خلل عندي

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

ملفات الجرافكيس لازم تكون موجود فى work directory وهذا الكود سيقوم باستعداءها
أعتقد انه ليس لديك خبرة كافية بالماتلاب
نرجو قراءة getting started من الهيلب