 |
04-27-2005
|
#1 (permalink)
|
|
Resident Diabolist
Location: Geneva-Bern-Zürich, Switzerland;Oslo,Norway
|
Not Ranked
:
+0 / -0
0 score
Standard map in matlab
I programmed the standard map in matlab and now my PC at home (where I have no internet at moment) is turning since 20 hours to calculate it with many initial conditions. I f any of you has got time, I would be very thankful if someone could tell me how to speed it up.
The standard map is with in my case x an angle theta (tz means thetazero) and y the impulsion: x[n+1]=x[n]+ y[n] and p[n+1]=p[n]+K*sin(x[n+1]) where [..] means indice.
P.S.: the function you launch is variationcond.m
----------------
Administrator
A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!
I don't believe in god, but I do believe in what others call utopies.
|
|
04-27-2005
|
#2 (permalink)
|
|
Dedicated Smart-ass
Location: Just before 0xAA55
|
Not Ranked
:
+0 / -0
0 score
Re: Standard map in matlab
hmm, perhaps you can attatch some code, I'll be glad to take a look at it, probably rewrite it in perl or python and see how it goes...
----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.
Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.
Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

|
|
04-28-2005
|
#3 (permalink)
|
|
Resident Diabolist
Location: Geneva-Bern-Zürich, Switzerland;Oslo,Norway
|
Not Ranked
:
+0 / -0
0 score
Re: Standard map in matlab
I actually attached it, but didn't verify if it was on...
Actually I can't upload matlab files so I changed in a txt file....
but if you haven't got time it isn't of vital importance as I can let run the machines over the week-end.
----------------
Administrator
A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!
I don't believe in god, but I do believe in what others call utopies.
|
|
04-29-2005
|
#4 (permalink)
|
|
Dedicated Smart-ass
Location: Just before 0xAA55
|
Not Ranked
:
+0 / -0
0 score
Re: Standard map in matlab
i see about 150000 loops, dont see why that would take so long, do you have to plot it or can you output your points to a file or something?
----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.
Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.
Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

|
|
05-02-2005
|
#5 (permalink)
|
|
Resident Diabolist
Location: Geneva-Bern-Zürich, Switzerland;Oslo,Norway
|
Not Ranked
:
+0 / -0
0 score
Re: Standard map in matlab
No I actually need to plot it, but anyway I stick to this code as I got the presentation tomorow (that's why I've been away for a while). A prof told me that a code in matlab is about 200 times slower than if I wrote it in C++ or else, so maybe that's the reason for taking a long time calculating 150000 points.
Anyway, thanks for having looked into it (and I suggest you take just one value of K around 0.75 and then you plot it it is a quite nice figure you obtain-you also have to have a pz in the form of 2*Pi*a with a irrational)-
----------------
Administrator
A COUNTRY WITHOUT AN ARMY IS LIKE A FISH WITHOUT A BIKE!!!
I don't believe in god, but I do believe in what others call utopies.
|
|
05-03-2005
|
#6 (permalink)
|
|
Dedicated Smart-ass
Location: Just before 0xAA55
|
Not Ranked
:
+0 / -0
0 score
Re: Standard map in matlab
I've been pretty busy with this new project lately it's pretty cool but is still at alpha, need to do more code work, but when it works, i'll be happy to share 
----------------
Microsoft, the leader in using innovative tactics to promote irksome experience, coupled with antiquated technology that's held together by a pyramid of makeshift afterthoughts.
Apple, the leader in using irksome tactics to promote innovative experience, coupled with an antiquated core that's enhanced by state-of-the-art afterthoughts.
Linux, the leader in not using any tactics to promote user-defined experience, coupled with state-of-the-art core enhanced by innovative afterthoughts.

|
|
 |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
» Advertisement |
|
|
|