SlideShare a Scribd company logo
1 of 14
Download to read offline
24 มีนาคม 2559 (Week 1)
1.การพล็อตกราฟ 1 เส้น
การพล็อตกราฟ
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
กด Enter
ผลจะปรากฏตามรูป
การตั้งชื่อกราฟ
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
กด Enter
ผลจะปรากฏตามรูป
ตั้งชื่อแกน X และแกน Y
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
xlable(‘crassroom’)
ylable(‘score’)
กด Enter
ผลจะปรากฏตามรูป
ลักษณะเส้นกราฟ
เปลี่ยนเส้นกราฟเป็นสีแดง
สีที่ใช้ในการเปลี่ยนเส้น มี สีแดง (Red), สีเขียว (Green), สีเหลือง (Yellow), สีนํ้าเงิน (Blue), สีดํา (K)
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
xlable(‘crassroom’)
ylable(‘score’)
plot(x,y,’red’)
กด Enter
ผลจะปรากฏตามรูป
เปลี่ยนเส้นกราฟเป็นเส้นปะ
การทํากราฟให้เป็นเส้นปะ ใช้ (- -)
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
xlable(‘crassroom’)
ylable(‘score’)
plot(x,y,’red’)
plot(x,y,’—r’)
กด Enter
ผลจะปรากฏตามรูป
เปลี่ยนเส้นกราฟเป็นเส้นปะสลับกับจุด
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
xlable(‘crassroom’)
ylable(‘score’)
plot(x,y,’red’)
plot(x,y,’--r’)
plot(x,y,’-.r’)
กด Enter
ผลจะปรากฏตามรูป
เปลี่ยนเส้นกราฟเป็นเส้นปะสลับเครื่องหมายบวก
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
xlable(‘crassroom’)
ylable(‘score’)
plot(x,y,’red’)
plot(x,y,’--r’)
plot(x,y,’-.r’)
plot(x,y,’-+r’)
กด Enter
ผลจะปรากฏตามรูป
เปลี่ยนเส้นกราฟเป็นเส้นปะสลับวงกลม
ใช้คําสั่ง
x = [4 7 16];
y = [1 2 3];
plot (x,y)
title(‘score of crassroom’)
xlable(‘crassroom’)
ylable(‘score’)
plot(x,y,’red’)
plot(x,y,’--r’)
plot(x,y,’-.r’)
plot(x,y,’-+r’)
plot(x,y,’-or’)
กด Enter
ผลจะปรากฏตามรูป
2) การพล็อตกราฟ 3 เส้น
พล็อตกราฟ 3 เส้น
ใช้คําสั่ง
x = [2 5 9 10 21];
y = [3 9 5 11 13];
z = [4 6 9 3 21];
t = [3 4 5 6 7];
plot(x,t,’—r’,y,t,’-.b’,z,t,’-^k’)
กด Enter
ผลจะปรากฏตามรูป
ใส่สัญลักษณ์และความหมายสัญลักษณ์ (แต่สัญลักษณ์ยังบังข้อมูลอยู่)
สัญลักษณ์ (Legend) ได้แก่ เครื่องบิน = สีแดง (r), รถไฟ = สีนํ้าเงิน (b), เรือ = สีดํา (k)
ใช้คําสั่ง
x = [2 5 9 10 21];
y = [3 9 5 11 13];
z = [4 6 9 3 21];
t = [3 4 5 6 7];
plot(x,t,’—r’,y,t,’-.b’,z,t,’-^k’)
legend(‘airplane’,’train’,’ship’)
กด Enter
ผลจะปรากฏตามรูป
กราฟของเครื่องบิน
เครื่องบิน = สีแดง (r)
ใช้คําสั่ง
x = [2 5 9 10 21];
y = [3 9 5 11 13];
z = [4 6 9 3 21];
t = [3 4 5 6 7];
plot(x,t,’--r’,y,t,’-.b’,z,t,’-^k’)
legend(‘airplane’,’train’,’ship’)
legend(‘location’,’northwest’)
subplot(2,2,1)
plot(x,t,’--r’)
กด Enter
ผลจะปรากฏตามรูป
กราฟของรถไฟ
รถไฟ = สีนํ้าเงิน (b)
ใช้คําสั่ง
x = [2 5 9 10 21];
y = [3 9 5 11 13];
z = [4 6 9 3 21];
t = [3 4 5 6 7];
plot(x,t,’--r’,y,t,’-.b’,z,t,’-^k’)
legend(‘airplane’,’train’,’ship’)
legend(‘location’,’northwest’)
subplot(2,2,1)
plot(x,t,’--r’)
subplot(2,2,2)
plot(y,t,’-^k’)
กด Enter
ผลจะปรากฏตามรูป
กราฟเรือ
เรือ = สีดํา (k)
ใช้คําสั่ง
x = [2 5 9 10 21];
y = [3 9 5 11 13];
z = [4 6 9 3 21];
t = [3 4 5 6 7];
plot(x,t,’--r’,y,t,’-.b’,z,t,’-^k’)
legend(‘airplane’,’train’,’ship’)
legend(‘location’,’northwest’)
subplot(2,2,1)
plot(x,t,’--r’)
subplot(2,2,2)
plot(y,t,’-^k’)
subplot(2,2,3)
plot(z,t,’-.b’)
กด Enter
ผลจะปรากฏตามรูป

More Related Content

Viewers also liked

Emaar mgf plots mohali 9356299831
Emaar mgf plots mohali 9356299831Emaar mgf plots mohali 9356299831
Emaar mgf plots mohali 9356299831rclvijay1
 
Technology Primer: Building Applications the New-Fashioned Way
Technology Primer: Building Applications the New-Fashioned WayTechnology Primer: Building Applications the New-Fashioned Way
Technology Primer: Building Applications the New-Fashioned WayCA Technologies
 
Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...
Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...
Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...CA Technologies
 
Curso hábitos alimenticios en preescolares
Curso hábitos alimenticios en preescolaresCurso hábitos alimenticios en preescolares
Curso hábitos alimenticios en preescolaresEducagratis
 
AISWARYATV 3rd sem seminar
 AISWARYATV 3rd sem seminar AISWARYATV 3rd sem seminar
AISWARYATV 3rd sem seminarAISWARYA TV
 
Pre-Con Education: Advanced and Reporting and Dashboards With Xtraction
Pre-Con Education: Advanced and Reporting and Dashboards With XtractionPre-Con Education: Advanced and Reporting and Dashboards With Xtraction
Pre-Con Education: Advanced and Reporting and Dashboards With XtractionCA Technologies
 
DH2011 Taller de Habilidades Gerenciales
DH2011 Taller de Habilidades GerencialesDH2011 Taller de Habilidades Gerenciales
DH2011 Taller de Habilidades GerencialesDesarrolloHumano2011
 
Habitos de Autonomía en niños de 6 y 7 años
Habitos de Autonomía en niños de 6 y 7 añosHabitos de Autonomía en niños de 6 y 7 años
Habitos de Autonomía en niños de 6 y 7 añossecretariajayb
 
Anhydrous ammonia storage and handling
Anhydrous ammonia storage and handlingAnhydrous ammonia storage and handling
Anhydrous ammonia storage and handlingMichael Pruden
 
Indianapolis
Indianapolis Indianapolis
Indianapolis 44756
 

Viewers also liked (17)

Lab2
Lab2Lab2
Lab2
 
Emaar mgf plots mohali 9356299831
Emaar mgf plots mohali 9356299831Emaar mgf plots mohali 9356299831
Emaar mgf plots mohali 9356299831
 
Pаint
PаintPаint
Pаint
 
Technology Primer: Building Applications the New-Fashioned Way
Technology Primer: Building Applications the New-Fashioned WayTechnology Primer: Building Applications the New-Fashioned Way
Technology Primer: Building Applications the New-Fashioned Way
 
Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...
Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...
Technology Primer: Monitor Node.js App Performance and the Impact to DevOps w...
 
Curso hábitos alimenticios en preescolares
Curso hábitos alimenticios en preescolaresCurso hábitos alimenticios en preescolares
Curso hábitos alimenticios en preescolares
 
Mobile tests usando AWS Device Farm
Mobile tests usando AWS Device FarmMobile tests usando AWS Device Farm
Mobile tests usando AWS Device Farm
 
AISWARYATV 3rd sem seminar
 AISWARYATV 3rd sem seminar AISWARYATV 3rd sem seminar
AISWARYATV 3rd sem seminar
 
Pre-Con Education: Advanced and Reporting and Dashboards With Xtraction
Pre-Con Education: Advanced and Reporting and Dashboards With XtractionPre-Con Education: Advanced and Reporting and Dashboards With Xtraction
Pre-Con Education: Advanced and Reporting and Dashboards With Xtraction
 
Lectura n45
Lectura n45Lectura n45
Lectura n45
 
DH2011 Taller de Habilidades Gerenciales
DH2011 Taller de Habilidades GerencialesDH2011 Taller de Habilidades Gerenciales
DH2011 Taller de Habilidades Gerenciales
 
Habitos de Autonomía en niños de 6 y 7 años
Habitos de Autonomía en niños de 6 y 7 añosHabitos de Autonomía en niños de 6 y 7 años
Habitos de Autonomía en niños de 6 y 7 años
 
Anhydrous ammonia storage and handling
Anhydrous ammonia storage and handlingAnhydrous ammonia storage and handling
Anhydrous ammonia storage and handling
 
Organic
OrganicOrganic
Organic
 
Manual Proyecto Educativo Ambiental
Manual Proyecto Educativo AmbientalManual Proyecto Educativo Ambiental
Manual Proyecto Educativo Ambiental
 
Matriz de logros Ambientales 2016
Matriz de logros Ambientales 2016 Matriz de logros Ambientales 2016
Matriz de logros Ambientales 2016
 
Indianapolis
Indianapolis Indianapolis
Indianapolis
 

More from Beer Srisudaporn

นางสาวรัตน์ชนก นาทองลาย
นางสาวรัตน์ชนก   นาทองลายนางสาวรัตน์ชนก   นาทองลาย
นางสาวรัตน์ชนก นาทองลายBeer Srisudaporn
 
นางสาวศรีสุดาพร คำอ้าย
นางสาวศรีสุดาพร   คำอ้ายนางสาวศรีสุดาพร   คำอ้าย
นางสาวศรีสุดาพร คำอ้ายBeer Srisudaporn
 
นางสาวสุดารัตน์ เนตรวงค์
นางสาวสุดารัตน์   เนตรวงค์นางสาวสุดารัตน์   เนตรวงค์
นางสาวสุดารัตน์ เนตรวงค์Beer Srisudaporn
 
นางสาวฐิติมาพร ขจรฟุ้ง
นางสาวฐิติมาพร ขจรฟุ้งนางสาวฐิติมาพร ขจรฟุ้ง
นางสาวฐิติมาพร ขจรฟุ้งBeer Srisudaporn
 

More from Beer Srisudaporn (13)

นางสาวรัตน์ชนก นาทองลาย
นางสาวรัตน์ชนก   นาทองลายนางสาวรัตน์ชนก   นาทองลาย
นางสาวรัตน์ชนก นาทองลาย
 
นางสาวศรีสุดาพร คำอ้าย
นางสาวศรีสุดาพร   คำอ้ายนางสาวศรีสุดาพร   คำอ้าย
นางสาวศรีสุดาพร คำอ้าย
 
นางสาวสุดารัตน์ เนตรวงค์
นางสาวสุดารัตน์   เนตรวงค์นางสาวสุดารัตน์   เนตรวงค์
นางสาวสุดารัตน์ เนตรวงค์
 
นางสาวฐิติมาพร ขจรฟุ้ง
นางสาวฐิติมาพร ขจรฟุ้งนางสาวฐิติมาพร ขจรฟุ้ง
นางสาวฐิติมาพร ขจรฟุ้ง
 
Merged document 4
Merged document 4Merged document 4
Merged document 4
 
Merged document 3
Merged document 3Merged document 3
Merged document 3
 
Matlab 58170042 (1)
Matlab 58170042 (1)Matlab 58170042 (1)
Matlab 58170042 (1)
 
Merged document
Merged documentMerged document
Merged document
 
Lab5
Lab5Lab5
Lab5
 
Lab4
Lab4Lab4
Lab4
 
Lab3
Lab3Lab3
Lab3
 
Lab1
Lab1Lab1
Lab1
 
Matrabเจน
MatrabเจนMatrabเจน
Matrabเจน
 

Lab1