wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
general >> wanted >> A Beginner who needs HELP pls
(Message started by: tony23 on May 16th, 2004, 3:12am)

Title: A Beginner who needs HELP pls
Post by tony23 on May 16th, 2004, 3:12am
hello im a newbie when it comes to MATLAB and i need help with a tutorial question.  i've attached the tutorial.

If u could give me some advise or either code the problems that would be great. thanks.

Title: Re: A Beginner who needs HELP pls
Post by towr on May 16th, 2004, 4:23am
That image if 4 times the size of my screen.. That doesn't exactly make it pleasant to read..

Title: Re: A Beginner who needs HELP pls
Post by william wu on May 16th, 2004, 1:56pm
I resized it; in the future please post images that at least fit in one monitor's length  ;)

Title: Re: A Beginner who needs HELP pls
Post by BNC on May 16th, 2004, 4:10pm
Did you finish with the first, non-matlab part (mathematical model)?

Title: Re: A Beginner who needs HELP pls
Post by tony23. on May 16th, 2004, 5:50pm
i have to model in two directions

1. in the x direction; simulate mixing proportional to sqrt Dv
2. in the y direction; simulate mixing proportional to
   (u.L)^2/ Dv.

this is the code i have come up with so far.....its not much

np=1000;nt=3000 ('np=no. of particle, nt=no. of time steps')
u=input ('velocity of particle')
Dv=input ('transverse diffusion coefficient')
L=sqrtDv
x(1:np,1)=0;y(1:np,1)=0
for i=2:nt
    s=rand(np,1)

thats all ive done.....i need to model the x & y directions. any suggestion?



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board