| Subject: | Re: Loops |
|---|---|
| From: | "Justus Skorps" |
| Date: | Fri, 30 Sep 2005 14:00:18 -0400 |
| Newsgroups: | comp.soft-sys.matlab |
Perhaps this will work:
mass_start=.01
for dist=.01:.01:50 %Look for planets from .01 AU to 50AU
D=dist*AU;
for mass = mass_start:.01:20 %Look for pl.up to 20 J Masses
MassPlanet=mass*MassJupiter;
v=planet_detect(MassPlanet,MassStar,D,SolarRadius);
if v>=3
typeOStar=cat1,typeOStar,D/AU,MassPlanet/MassJupiter,v]);
disp('Breaking');
mass_start=mass;
break;
end
end
end
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | nonmonotonic 2D interpolation, sunny |
|---|---|
| Next by Date: | Re: Loops, Tim Felty |
| Previous by Thread: | Loops, Tim Felty |
| Next by Thread: | Re: Loops, Tim Felty |
| Indexes: | [Date] [Thread] [Top] [All Lists] |