Erwin Harahap

do Now or Never

Quiz3_int_kubik(matlab&manual)_sofian_018

Posted by pyandhtea on April 19, 2011

diberikan data tingkat curah hujan sebagai berikut:

x y
0 0
1 1
2 1.2599205
7 1.91293118
8 2
27 3

dengan x adalah hari dan y adalah tingkat curah hujan:

Tentukan interpolasi di hari ke 15?

jawab:

algoritma.

x=[0,1,2,7,8,27];
y=[0,1,1.25992105,1.912931183,2,3];
xi=3.5:0.1:3.5;
yi=interp1(x,y,xi,’cubic’);
plot(x,y,’o’,xi,yi)

int_kbk_tgs
>> yi

yi =

2.4726

yi= 2.4726

xi=0:0.1:27;

jadi curah hujan pada hari ke 15 adalah 2.4626

dengan manual:

by sofian arip

10060209018

One Response to “Quiz3_int_kubik(matlab&manual)_sofian_018”

  1. […] Quiz3_sofian_018 […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: