MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Can Mathematica interpolate non-uniform scatter data?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106895] Can Mathematica interpolate non-uniform scatter data?
  • From: Lawrence Teo <lawrenceteo at yahoo.com>
  • Date: Tue, 26 Jan 2010 06:36:00 -0500 (EST)

Hi all,

Can Mathematica interpolate non-uniform scatter data?
Like ListInterpolation or Interpolation functions...

z = {{0.`, 0.`, 0.`, 0.`, 0.`, 0.`, 0.`, 0.`, 0.`}, {0.`, ,
    0.12467473338522769`, 0.18640329676226988`,
    0.24740395925452294`, , 0.36627252908604757`,
    0.42367625720393803`, 0.479425538604203`}, {0.`,
    0.12467473338522769`, 0.24740395925452294`, 0.36627252908604757`,
    0.479425538604203`, 0.5850972729404622`, 0.6816387600233341`, ,
    0.8414709848078965`}, {0.`, 0.18640329676226988`,
    0.36627252908604757`, 0.5333026735360201`, 0.6816387600233341`,
    0.806081108260693`, 0.9022675940990952`, 0.9668265566961802`,
    0.9974949866040544`}, {0.`, 0.24740395925452294`,
    0.479425538604203`, 0.6816387600233341`, 0.8414709848078965`,
    0.9489846193555862`, 0.9974949866040544`, 0.9839859468739369`,
    0.9092974268256817`}};
g = ListInterpolation[z, {{0, 1}, {0, 2}}];
g[0.5, 0.5]

However, the previous interpolation will give us a lot of NULL in the
expression...


  • Prev by Date: Re: simple question for mathematica (corrected)
  • Next by Date: Re: Re: Re: looping
  • Previous by thread: Re: License terms for free Mathematica Player
  • Next by thread: Re: Can Mathematica interpolate non-uniform scatter data?