• Tidak ada hasil yang ditemukan

Session II Graphs & Matrices

N/A
N/A
Protected

Academic year: 2025

Membagikan "Session II Graphs & Matrices"

Copied!
24
0
0

Teks penuh

(1)

*

Session II

Graphs & Matrices

Dr. Afsaneh Mojra Dept of Mechanical

Engineering

(2)

*

ﻢﻴﺳﺮﺗ يﺎﻫراﺰﺑا فاﺮﮔ

Command Window

Workspace

M-file

(3)

*

Graph

) ﻪﺳ يﺪﻌﺑ

( 3-D

) يﺪﻌﺑ ود

( 2-D

يا ﻪﻠﻴﻣ رادﻮﻤﻧ (Bar Plot) ﺎﻄﺧ رادﻮﻤﻧ (Error Bar Plot) يا ﻪﻗﺎﺳ رادﻮﻤﻧ (Stem Plot)

يا ﻪﻠﭘ رادﻮﻤﻧ (Step Plot) ﻲﺒﻄﻗ رادﻮﻤﻧ (Polar Plot) يا ﻪﻄﻘﻧ رادﻮﻤﻧ (Scatter Plot)

ﻲﻄﺧ رادﻮﻤﻧ (Line Plot)

2/23

(4)

*

0 2 4 6 8 10

-100 -80 -60 -40 -20 0 20 40 60 80 100

y

y=x2

y=100*sin(x)

(5)

ﻲﻄﺧ رادﻮﻤﻧ ﻚﻳ ﻢﻴﺳﺮﺗ ﻞﺣاﺮﻣ :

1 - رﻮﺤﻣ ﻒﻳﺮﻌﺗ : x

x=[0:0.1:10]

2 - ﻢﻛﺎﺣ ﻪﻟدﺎﻌﻣ ﻒﻳﺮﻌﺗ )

نﺎﻴﻣ ﻪﻄﺑار و x

:( y y=x

2

(y=x.^2)

*

4/23

(6)

3 - رﻮﺘﺳد ﻢﻴﺳﺮﺗ

plot(y)

*

0 20 40 60 80 100 120

0 10 20 30 40 50 60 70 80 90 100

(7)

4 - ﺎﻫرﻮﺤﻣ يراﺬﮕﻣﺎﻧ (x-Label & y-Label)

xlabel(‘time’) ylabel(‘force’)

*

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

time

force

6/23

(8)

*

plot(x,y,'--rs','LineWidth',2)

--: line style

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

r: line color s: data format

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

(9)

*

'--rs'

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

8/23

(10)

*

(11)

*

+ o

* . x s:

d:

v

^

<

>

0 2 4 6 8 10

0 200 400 600 800 1000

10/23

(12)

*

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

'LineWidth‘: 2

0 1 2 3 4 5 6 7 8 9 10

0 10 20 30 40 50 60 70 80 90 100

'LineWidth‘: 6

(13)

*

0 2 4 6 8 10

0 20 40 60 80 100

Graph

12/23

(14)

*

(15)

*

14/23

(16)
(17)

*

ﻚﻳ يور ﺮﺑ ﻪﻟدﺎﻌﻣ ﺪﻨﭼ نﺎﻣﺰﻤﻫ ﻢﻴﺳﺮﺗ فاﺮﮔ

plot(x1,y1,x2,y2,…)

16/23

(18)

*

ﻚﻳ يور ﺮﺑ ﻪﻟدﺎﻌﻣ ﺪﻨﭼ نﺎﻣﺰﻤﻫ ﻢﻴﺳﺮﺗ فاﺮﮔ

-80 -60 -40 -20 0 20 40 60 80 100

y1=x2

y2=100*sin(x)

(19)

*

18/23

(20)

*

200 400 600 800 1000 1200 1400 1600 1800 2000

data1 data2

(21)

*

1 1.5 2 2.5 3

5 10 15

Sample1

x

y

y=5x

20/23

(22)

*

ﻪﻟدﺎﻌﻣ ﻢﻴﺳﺮﺗ y=e

(tan(sin(x))

رد هزﺎﺑ

>>x =[-pi:pi/100:pi];

>>y=exp(tan(sin(x)));

>>plot(x,y,'c','linewidth',3) ;

>>xlabel('x') ;

>>ylabel('y');

>>title('Sample2');

(23)

*

-4 -3 -2 -1 0 1 2 3 4

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

x

y

Sample2

22/23

(24)

*

تﻻدﺎﻌﻣ ﺪﻴﻨﻛ ﻢﻴﺳﺮﺗ ار ﺮﻳز

:

Referensi

Dokumen terkait

Click the Workspace button in edit bar and choose Manage (or choose Window &gt; Workspace &gt; Manage) to open the Manage Workspace Layouts dialog box.. To delete

a) Menu, terdiri dari file, edit, view, insert, modify, text, commands, control, window, dan help yang berfungsi untuk membuat, membuka, menyimpan file, dan

Click Save , which puts the file into the directory introtutorial and leads to the Graphic Editor window displayed in Figure 14..

To compile a Flex application outside of Flash Builder, open a command prompt (Windows) or a terminal window (Mac OS X), invoke the MXML compiler, and pass the file containing

Sebagai contoh apabila output dari matrik A akan disimpan di direktori c:\backup dengan nama file mydata.txt, maka pada command window diketikkan.. »

For a list of conversion options for the nios2-elf-objdump command, in a Nios II command shell, type the following command: nios2-elf-objdump --help r Although the objdump file

Resize window Zoom window Previous line File mask Terminate input --- Table 19.9.2 Edit window commands --- Action Keystrokes help zoom in window zoom out window

DRAG ANDDROPFILES ONTO THETERMINALWINDOW 22 15 Drag and Drop Files onto the 2 Terminal Window If you are using a terminal command on a file and cannot bear to type the entire path to