Flower
I Love Beautiful Garden
Crips Flower Windows Box
I Love Beautiful Garden
Pinky
I Love Beautiful Garden
Smilling FLower
I Love Beautiful Garden
Romantic White
I Love Beautiful Garden
Minggu, 30 Maret 2014
My Effort in Improving My English
Selasa, 25 Maret 2014
Grafik 3
> x=-pi:.1:pi;
>> z=sin(x)
z =
Columns 1 through 7
-0.0000 -0.0998 -0.1987 -0.2955 -0.3894 -0.4794 -0.5646
Columns 8 through 14
-0.6442 -0.7174 -0.7833 -0.8415 -0.8912 -0.9320 -0.9636
Columns 15 through 21
-0.9854 -0.9975 -0.9996 -0.9917 -0.9738 -0.9463 -0.9093
Columns 22 through 28
-0.8632 -0.8085 -0.7457 -0.6755 -0.5985 -0.5155 -0.4274
Columns 29 through 35
-0.3350 -0.2392 -0.1411 -0.0416 0.0584 0.1577 0.2555
Columns 36 through 42
0.3508 0.4425 0.5298 0.6119 0.6878 0.7568 0.8183
Columns 43 through 49
0.8716 0.9162 0.9516 0.9775 0.9937 0.9999 0.9962
Columns 50 through 56
0.9825 0.9589 0.9258 0.8835 0.8323 0.7728 0.7055
Columns 57 through 63
0.6313 0.5507 0.4646 0.3739 0.2794 0.1822 0.0831
>> plot(x,z)
>> set(gca,'XTick',-pi:pi/2:pi)
>> set(gca,'XTickLabel',{'-pi','-pi/2','0','pi/2','pi'})
>> z=sin(x)
z =
Columns 1 through 7
-0.0000 -0.0998 -0.1987 -0.2955 -0.3894 -0.4794 -0.5646
Columns 8 through 14
-0.6442 -0.7174 -0.7833 -0.8415 -0.8912 -0.9320 -0.9636
Columns 15 through 21
-0.9854 -0.9975 -0.9996 -0.9917 -0.9738 -0.9463 -0.9093
Columns 22 through 28
-0.8632 -0.8085 -0.7457 -0.6755 -0.5985 -0.5155 -0.4274
Columns 29 through 35
-0.3350 -0.2392 -0.1411 -0.0416 0.0584 0.1577 0.2555
Columns 36 through 42
0.3508 0.4425 0.5298 0.6119 0.6878 0.7568 0.8183
Columns 43 through 49
0.8716 0.9162 0.9516 0.9775 0.9937 0.9999 0.9962
Columns 50 through 56
0.9825 0.9589 0.9258 0.8835 0.8323 0.7728 0.7055
Columns 57 through 63
0.6313 0.5507 0.4646 0.3739 0.2794 0.1822 0.0831
>> plot(x,z)
>> set(gca,'XTick',-pi:pi/2:pi)
>> set(gca,'XTickLabel',{'-pi','-pi/2','0','pi/2','pi'})
Turunan
MATLAB
a=[2 1 4]
a =
2 1 4
>> x=polyder(a)
x =
4 1
>> b=[1 0 -3 -1]
b =
1 0 -3 -1
>> y=polyder(b)
y =
3 0 -3
>> [p,q]=polyder(a,b)
p =
-2 -2 -18 -4 11
q =
1 0 -6 -2 9 6 1
a=[2 1 4]
a =
2 1 4
>> x=polyder(a)
x =
4 1
>> b=[1 0 -3 -1]
b =
1 0 -3 -1
>> y=polyder(b)
y =
3 0 -3
>> [p,q]=polyder(a,b)
p =
-2 -2 -18 -4 11
q =
1 0 -6 -2 9 6 1
Senin, 24 Maret 2014
Konversi String
%konversi string
x=input('dari basis berapa : ')
y=input('ke basis berapa : ')
z=input('Masukkan angkanya : ')
s=base2dec(z,x)
t=dec2base(s,y)
u=['konversi dari basis' num2str(x) ' ke basis' num2str(y) ' adalah ' num2str(t)]
x=input('dari basis berapa : ')
y=input('ke basis berapa : ')
z=input('Masukkan angkanya : ')
s=base2dec(z,x)
t=dec2base(s,y)
u=['konversi dari basis' num2str(x) ' ke basis' num2str(y) ' adalah ' num2str(t)]
Senin, 17 Maret 2014
Lingkaran1
for n=1:3:10
x=(n^2)*pi;
disp(['Luas lingkaran dengan jari-jari ',num2str(n),'=',num2str(x)])
end;
x=(n^2)*pi;
disp(['Luas lingkaran dengan jari-jari ',num2str(n),'=',num2str(x)])
end;
Minggu, 16 Maret 2014
Menghitung jumlah nilai dari { (1+i)^2 / 2i }
Ini kesalahannya dimana ya kok program nggak mau jalan ? ? ?
MATLAB
%while loop
disp('Menghitung jumlah nilai dari { (1+n)^2 / 2n } dari data 1 s/d n')
disp(' ')
syms yt ;
jawab='y';
b=0
n=input('Masukkan banyak data = ');
while jawab=='y'
while n>=1
b=b+(((1+n)^2)/2*n);
n=(n-1);
end
t=['Hasilnya = ',num2str(b)]
disp(t);
jawab=input('Ingin mengulang lagi? (y/t)')
end
ATAU
disp('Menghitung jumlah nilai dari { (1+i)^2 / 2i } dari data 1 s/d n')
disp(' ')
syms yt ;
jawab='y';
n=input('Masukkan banyak data = ');
b=0
while jawab=='y'
for n=1:n
b=b+((1+n)^2/2*n);
n=(n-1);
end
t=['Hasilnya = ',num2str(b)]
disp(t);
jawab=input('Ingin mengulang lagi? (y/t)');
n=input('Masukkan banyak data = ')
end
MATLAB
%while loop
disp('Menghitung jumlah nilai dari { (1+n)^2 / 2n } dari data 1 s/d n')
disp(' ')
syms yt ;
jawab='y';
b=0
n=input('Masukkan banyak data = ');
while jawab=='y'
while n>=1
b=b+(((1+n)^2)/2*n);
n=(n-1);
end
t=['Hasilnya = ',num2str(b)]
disp(t);
jawab=input('Ingin mengulang lagi? (y/t)')
end
ATAU
disp('Menghitung jumlah nilai dari { (1+i)^2 / 2i } dari data 1 s/d n')
disp(' ')
syms yt ;
jawab='y';
n=input('Masukkan banyak data = ');
b=0
while jawab=='y'
for n=1:n
b=b+((1+n)^2/2*n);
n=(n-1);
end
t=['Hasilnya = ',num2str(b)]
disp(t);
jawab=input('Ingin mengulang lagi? (y/t)');
n=input('Masukkan banyak data = ')
end
Selasa, 11 Maret 2014
Menghitung rata-rata
MATLAB
Menghitung rata-rata
n=1;jumlah=0;
x=input('Banyak data = ')
while n<=x
%t=['Masukkan data ke ' num2str(n)];
%disp(t)
a=input('Datanya ');
jumlah=jumlah+a;
n=n+1;
end
rata=jumlah/x;
disp(' ')
disp('Rata-rata = ')
disp(rata)
Menghitung rata-rata
n=1;jumlah=0;
x=input('Banyak data = ')
while n<=x
%t=['Masukkan data ke ' num2str(n)];
%disp(t)
a=input('Datanya ');
jumlah=jumlah+a;
n=n+1;
end
rata=jumlah/x;
disp(' ')
disp('Rata-rata = ')
disp(rata)
Menghitung Volume Bangun Ruang
MATLAB
Menghitung Volume Bangun Ruang
disp(' ')
disp('********************************')
disp(' Menghitung Volume Bangun Ruang')
disp('********************************')
disp(' ')
disp('Pilih Bangun Ruang')
disp(' ')
Pilihan_Anda=input('1=Silinder, 2=Kubus, 3=Kerucut => Pilhannya adalah ')
while Pilihan_Anda>3
disp('Maaf pilihan Anda tidak tersedia, coba lagi')
disp(' ')
Pilihan_Anda=input('1=Silinder, 2=Kubus, 3=Kerucut => Pilhannya adalah ')
end
switch Pilihan_Anda
case{1}
disp(' ')
disp(' # Menghitung volume silinder #')
r=input(' Berapa panjang jari-jarinya? ')
t=input(' Berapa tingginya? ')
fprintf('Volume Silinder = %7.3f meter kubik \n',pi*r^2*t)
case{2}
disp(' ')
disp(' # Menggitung volume kubus #')
s=input(' Berapa panjang rusuknya? ')
fprintf('Volume Kubus = %7.3f meter kubik \n',s^3)
case{3}
disp(' ')
disp(' # Menggitung volume kerucut #')
r1=input(' Berapa panjang jari-jarinya? ')
t1=input(' Berapa tingginya? ')
fprintf('Volume Kerucut = %7.3f meter kubik \n',(pi*r1^2*t1)/3)
end
Menghitung Volume Bangun Ruang
disp(' ')
disp('********************************')
disp(' Menghitung Volume Bangun Ruang')
disp('********************************')
disp(' ')
disp('Pilih Bangun Ruang')
disp(' ')
Pilihan_Anda=input('1=Silinder, 2=Kubus, 3=Kerucut => Pilhannya adalah ')
while Pilihan_Anda>3
disp('Maaf pilihan Anda tidak tersedia, coba lagi')
disp(' ')
Pilihan_Anda=input('1=Silinder, 2=Kubus, 3=Kerucut => Pilhannya adalah ')
end
switch Pilihan_Anda
case{1}
disp(' ')
disp(' # Menghitung volume silinder #')
r=input(' Berapa panjang jari-jarinya? ')
t=input(' Berapa tingginya? ')
fprintf('Volume Silinder = %7.3f meter kubik \n',pi*r^2*t)
case{2}
disp(' ')
disp(' # Menggitung volume kubus #')
s=input(' Berapa panjang rusuknya? ')
fprintf('Volume Kubus = %7.3f meter kubik \n',s^3)
case{3}
disp(' ')
disp(' # Menggitung volume kerucut #')
r1=input(' Berapa panjang jari-jarinya? ')
t1=input(' Berapa tingginya? ')
fprintf('Volume Kerucut = %7.3f meter kubik \n',(pi*r1^2*t1)/3)
end
Faktorial
MATLAB
Faktorial
for
x=input('Masukkan Bilangan = ');
n=1;
for i=1:x
n=n*i;
end
t=['Hasilnya = ',num2str(n)]
disp(t);
while (x sampai 1)
x=input('Masukkan Bilangan = ');
n=1;
while x>1
n=n*x
x=x-1;
end
t=['Hasilnya = ',num2str(n)]
disp(t);
while (1 sampai x)
x=input('Masukkan Bilangan = ');
n=1;
z=1;
while n<x
z=z*n;
n=n+1;
end
t=['Hasilnya = ',num2str(z)]
disp(t);
Faktorial
for
x=input('Masukkan Bilangan = ');
n=1;
for i=1:x
n=n*i;
end
t=['Hasilnya = ',num2str(n)]
disp(t);
while (x sampai 1)
x=input('Masukkan Bilangan = ');
n=1;
while x>1
n=n*x
x=x-1;
end
t=['Hasilnya = ',num2str(n)]
disp(t);
while (1 sampai x)
x=input('Masukkan Bilangan = ');
n=1;
z=1;
while n<x
z=z*n;
n=n+1;
end
t=['Hasilnya = ',num2str(z)]
disp(t);
Selasa, 04 Maret 2014
Ancient Volcano Named Nglanggeran
On 1st December 2013 I and my friends did a trip
to Gunung Kidul, Yogyakarta. We Climbed an ancient volcano named Nglanggeran
located in Patuk area. We set off from the hostel at 8:30 am and arrived 45
minutes later. We paid 5000 rupias every single person for the ticket, then we
are ready to hike this ancient volcano. The trip to the summit top of Nglanggeran
was very enjoyable. We passed the stairs of stone and earth. Indeed,
there were many large boulders that were very beautiful. In fact,
sometimes we had to pass through a very narrow route, passing between two narrow rock
cliffs. In Nglanggeran there is also a camping ground. But as it
happened, when we were there no one was camping.
Before reaching the top we want to turn first to Mata Air
Comberan (Comberan spring). We climbed the wooden stairs to the large rock that was in front
of us, after arrived on the high stone, I saw that the road was difficult for
me. I did not dare go there because it passes through two narrow cliffs. Unlike
the previous cliff where we walked on land between the two cliffs, this time we were not walking on the soil,
we have to stick to the cliff because under us is like a small and narrow gap.
although it is not too narrow and steep, for me it was too extreme. Only two
friends passed, me and my other friends followed the route back to the peak,
the road to the top was more slippery than before. With the peak already in
sight, we met a friend of our group who
had reached the summit long before us. We just reached the peak when he was already going down. Then I told him about our
friends who were in the Mata Air Comberan and they were going there too.
To get to the second rocky peak we had to climb the stairs,
there was only one path. Because of many visitors going down, we has to queue
up first. While we were sitting, suddenly two friends who went to Mata Air
Comberan arrived through other routes. Indeed, there is more than one road to
the summit, and more than one summit, there are two peaks. We chose 2nd
peaks because the main top would require passing a long route. Once the
queue was finished, we climbed the log stairs one by one. After reaching the
peak, we lost all sense of fatigue. How beautiful the scenery we can see from
the 2nd top. From the second peak , we can also see the main top.
At the top, the wind is blowing pretty hard, so it is not recommended to smoke
cigarettes at the top because it will quickly run out. From the top we can also see Embung, water
storage reservoirs. How beautiful the scenery on top of Nglanggeran.
















