Anda di halaman 1dari 6

# KELOMPOK 2

- FITRIANI
- JAMALUDDIN
- FAUZIAH NURAINI

-MELA FLORENCE
-WULAN SALLE KARURUNG
-MUH.ARIF

## POLYVAL dan POLYFIT

t = (0: 0.1: 5)';
olh
X = erf(t);
p = polyfit(t,X,1)
f = polyval(p,t);
plot (t,X,'O',t,f,'-')
axis([0 5 0 2])
grid on

2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0

0.5

1.5

2.5

3.5

4.5

PLOT 3 (X,Y,Z)
t = (1:1/200:1+199/200);
plot (t,x,t,y,t,z);
grid on

0.15

0.1

0.05

-0.05

-0.1

-0.15

-0.2

1.1

1.2

1.3

1.4

1.5

1.6

1.7

1.8

1.9

PLOT 1 (X)
t = (1:1/200:1+199/200);
plot (t,x);
grid on

0.02
0.015
0.01
0.005
0
-0.005
-0.01
-0.015
-0.02
-0.025
-0.03

1.1

1.2

1.3

1.4

1.5

1.6

1.7

1.8

1.9

PLOT 2 (X,Y)
t = (1:1/200:1+199/200);
plot (t,x,t,y);
grid on

0.02
0.015
0.01
0.005
0
-0.005
-0.01
-0.015
-0.02
-0.025
-0.03

1.1

1.2

1.3

1.4

1.5

1.6

1.7

1.8

1.9

menggunakan subplot
t = (1:1/200:1+199/200);
subplot (2,4,[1 2]);
plot (t,x);
grid on
subplot (2,4,[3 4]);
plot (t,x,t,y);
grid on
subplot (2,4,[5 6]);
plot (t,x,t,y,t,z);
grid on

0.02

0.02

0.01

0.01

-0.01

-0.01

-0.02

-0.02

-0.03

1.5

-0.03
2
1

1.5

0.2
0.1
0
-0.1
-0.2

1.5

### Dapatkan aplikasi gratis kami

Hak cipta © 2021 Scribd Inc.