From: Florin on 9 Jun 2010 12: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? > > thank you in advance Say you have the interval [1,100] and two control points x1,x2 and 2 corresponding steps k1,k2, you could try this : a=linspace(1,x1,k1); b=linspace(x1,x2,k2); c=linspace(x2,100,k1); X=[a,b,c]; You can choose as many points and steps as you wish. Florin
From: John D'Errico on 9 Jun 2010 13:05 "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 Let me try again. Telling us that something is non-uniform, is like telling us that your car is not black. What color is your car? We cannot tell, since you have made NO positive statement that we can use to help you. You have told us only what it is not. I contend that once you choose to define what is your goal, then you will also have solved much of your own problem, or at least have made it very easy for us to help you. John
First
|
Prev
|
Pages: 1 2 3 Prev: ...Did you here about Islam? I mean the real Islam Next: Trend Intellitrap and MEX files |