From: Marwa Helemish on 9 Jun 2010 08:32 Hello everybody, I am trying to solve some of nonlinear function by using numerical methods, As you know, I first thing in the solving steps is discrization of the dimension domain, I wnat to know how can i gerenate or creat non uniform grid in 1D for example In uniform grid is more easier than nonuniform it can be done with linespace or semicolon. But for nonuniform condiction, how would the grid be discrizated? thank you in advance
From: John D'Errico on 9 Jun 2010 08:44 "Marwa Helemish" <helemish(a)iee.tu-dresden.de> wrote in message <huo1kl$v6$1(a)fred.mathworks.com>... > Hello everybody, > I am trying to solve some of nonlinear function by using numerical methods, As you know, I first thing in the solving steps is discrization of the dimension domain, > I wnat to know how can i gerenate or creat non uniform grid in 1D for example > In uniform grid is more easier than nonuniform > it can be done with linespace or semicolon. > But for nonuniform condiction, how would the grid be discrizated? Since it is a NON-uniform grid, you cannot use tools that build a uniform sequence of numbers. However, since only you know what non-uniformity you will choose, how can we possibly tell you how to build it? Use a loop. Or do it by hand. The crystal ball is foggy today. John
From: Marwa Helemish on 9 Jun 2010 08:58 "John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <huo2ao$g1q$1(a)fred.mathworks.com>... > "Marwa Helemish" <helemish(a)iee.tu-dresden.de> wrote in message <huo1kl$v6$1(a)fred.mathworks.com>... > > Hello everybody, > > I am trying to solve some of nonlinear function by using numerical methods, As you know, I first thing in the solving steps is discrization of the dimension domain, > > I wnat to know how can i gerenate or creat non uniform grid in 1D for example > > In uniform grid is more easier than nonuniform > > it can be done with linespace or semicolon. > > But for nonuniform condiction, how would the grid be discrizated? > > Since it is a NON-uniform grid, you cannot use tools > that build a uniform sequence of numbers. However, > since only you know what non-uniformity you will > choose, how can we possibly tell you how to build it? > > Use a loop. Or do it by hand. > > The crystal ball is foggy today. > > John Although your reply doe not satisfy my request. at leastplease, give me an example to nonuniform grid in 1D in matlab
From: the cyclist on 9 Jun 2010 09:09 "Marwa Helemish" <helemish(a)iee.tu-dresden.de> wrote in message <huo1kl$v6$1(a)fred.mathworks.com>... > Hello everybody, > I am trying to solve some of nonlinear function by using numerical methods, As you know, I first thing in the solving steps is discrization of the dimension domain, > I wnat to know how can i gerenate or creat non uniform grid in 1D for example > In uniform grid is more easier than nonuniform > it can be done with linespace or semicolon. > But for nonuniform condiction, how would the grid be discrizated? > > thank you in advance John is of course right that you have not given us much to go on. Often when one does not want uniform numbers, one wants random or quasirandom sampling. If that's what you want, you could look at the help file for "rand". If you have the stats toolbox, do "help stats" and look at section on quasi-random number generators. If you have a specific, non-random distribution that you want, you might be able to create it with other functions in the stats toolbox, such as the pdf functions, I think.
From: the cyclist on 9 Jun 2010 09:11 "Marwa Helemish" <helemish(a)iee.tu-dresden.de> wrote in message <huo35h$b6d$1(a)fred.mathworks.com>... > "John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <huo2ao$g1q$1(a)fred.mathworks.com>... > > "Marwa Helemish" <helemish(a)iee.tu-dresden.de> wrote in message <huo1kl$v6$1(a)fred.mathworks.com>... > > > Hello everybody, > > > I am trying to solve some of nonlinear function by using numerical methods, As you know, I first thing in the solving steps is discrization of the dimension domain, > > > I wnat to know how can i gerenate or creat non uniform grid in 1D for example > > > In uniform grid is more easier than nonuniform > > > it can be done with linespace or semicolon. > > > But for nonuniform condiction, how would the grid be discrizated? > > > > Since it is a NON-uniform grid, you cannot use tools > > that build a uniform sequence of numbers. However, > > since only you know what non-uniformity you will > > choose, how can we possibly tell you how to build it? > > > > Use a loop. Or do it by hand. > > > > The crystal ball is foggy today. > > > > John > > Although your reply doe not satisfy my request. > at leastplease, give me an example to nonuniform grid in 1D in matlab While John becomes apoplectic, here is an example of a non-uniform grid of points in one dimension: x = [1 2 4];
|
Next
|
Last
Pages: 1 2 3 Prev: ...Did you here about Islam? I mean the real Islam Next: Trend Intellitrap and MEX files |