2. Tugas : Hasilnya diprint, kumpulkan minggu depan
Buatlah grafik dari soal berikut:
1. y= sin 2x, -2 x 2
2. y= sin (2x + /2), -2 x 2
3. y=x³ , -10 x 10
4. y={ -3, -2, 4, 3, 3, 1, 2, 5}
5. y = 3sin x + cos 3x, - x
6. Y = tag x – 2sin x + cos, - i x
3. 1. y= sin 2x, -2 x 2
Kode Matlab :
>> x=-2*pi:0.1:2*pi;
>> y=sin(2*x);
>> plot(x,y)
4. 2. y= sin (2x + /2), -2 x 2
Kode Matlab :
>> x =-2*pi:0.1:2*pi;
>> y =sin(2*x + pi/2);
>> plot(x,y)