Professional Documents
Culture Documents
الرسومات في ماتلاب 225-4
الرسومات في ماتلاب 225-4
الرسومات في ماتلاب 225-4
انرسىماث في ماتالب
2
6 2011 شباط8
انىتيجت
colormap تم استخدام القٌم االفتراضٌة
من اجل تلوٌن الشبكة
تم استخدام لون أحادي للشبكة من خالل الخاصة
1
EdgeColor
0.5
0
-0.5
10
5 10
0 5
0
-5 -5
-10 -10 8شباط 2011
7
إظهار األجزاء انمخفيت
• األمر ٌ hidden offسمح بإظهار األجزاء المخفٌة من
الشكل
1
0.5
0
-0.5
10
5 10
0 5
0
-5 -5
-10 -10
0.8
1
0.6
0.5
0.4
0
0.2
-0.5
10
0
5 10
0 5
0
-5 -5 -0.2
-10 -10
16 2011 شباط8
وتيجت انرسم
Cylinder
1
0.8
0.6
z
0.4
0.2
0
2
1 2
0 1
0
-1 -1
y -2 -2
x
18 2011 شباط8
16 وتيجت انتطبيق
Cylinder with quadratic surface
0.8
0.6
z
0.4
0.2
0
4
2 4
0 2
0
-2 -2
y -4 -4
x
19 2011 شباط8
17 تطبيق
mesh وsurf • أرسم الكرة االفتراضٌة باستخدام األوامر
>> subplot(1,2,1)
>> [x,y,z] = sphere;
>> surf(x,y,z)
>> axis equal
>> subplot(1,2,2)
>> mesh(x,y,z)
>> axis equal
20 2011 شباط8
وتيجت انتطبيق 16
1 1
0.5
0 0
-0.5
-1 -1
1 1
1 1
0 0
0 0
-1 -1 -1 -1
23
انشكم األول
figure(1) % surf plot
surf(X,Y,Z)
shading interp;
title('surf plot');
box on; xlabel('X'),ylabel('Y'), zlabel('Z')
24 2011 شباط8
وتيجت انشكم األول
surf plot
30
20
10
Z
0
-10
20
10 20
0 10
0
-10 -10
Y -20 -20
X
26 2011 شباط8
وتيجت انشكم انثاوي
shaded surf plot
30
20
10
Z
-10
20
10 20
0 10
0
-10 -10
Y -20 -20
X
27
انشكم انثانث
figure(3) % view plots subplot(2,2,3)
subplot(2,2,1) surf(X,Y,Z)
surf(X,Y,Z) shading faceted
shading faceted view(-37.5-90,0)
view(0,0); xlabel('X'),ylabel('Y'), zlabel('Z')
xlabel('X'),ylabel('Y'), zlabel('Z') subplot(2,2,4)
subplot(2,2,2) surf(X,Y,Z)
surf(X,Y,Z) shading faceted
shading faceted view(-37.5-45,0)
view(90,0) xlabel('X'),ylabel('Y'), zlabel('Z')
xlabel('X'),ylabel('Y'), zlabel('Z')
28
وتيجت انشكم انثانث
29
انشكم انرابع
figure(4) % contour plot
contour(X,Y,Z,20);axis square;
box on; shading interp;grid off;
title('contour plot')
xlabel('X'),ylabel('Y'), zlabel('Z')
30 2011 شباط8
وتيجت انشكم انرابع
contour plot
10
5
0
Y
-5
-10
32 2011 شباط8
وتيجت انشكم انخامس
contour3 plot
25
20
15
10
Z
5
0
-5
10
5 10
0 5
-5 0
-5
-10 -10
Y X
33
وظيفت
أكتب برنامجا فً ماتالب ٌسمح برسم التوابع التالٌة : •
)sin(x •
)cos(x •
)sin(x)+cos(x •
)sin(x)−cos(x •
مع مراعاة ما ٌلً : وذلك ضمن المجال •