Info
This question is closed. Reopen it to edit or answer.
verctorize with classes /structs
1 view (last 30 days)
Show older comments
hi everybody,
i wrote myself a program to calculate 2 dimenstional wood structures.
since i was pretty new to matlab when i started i loaded my program with all the slow stuff and im trying now to speed it up.
i got something lke this:
Nnegpar(man.beamlist(beamsel).points(pos).NachweisForces('Nced'),... man.formlist(man.beamlist(beamsel).form).A,... man.matlist(man.beamlist(beamsel).material).festi('fc0k'),...
1.3,
... man.beamlist(beamsel).points(pos).kmod('Nced'));
man contains all the data
beamilst is a list of instancers of the class beam
ech instance of class beam has a an instance of material and form and two nodes
in fact its really hard to explain it in a short way, but the thing is im extracting the data in a for loop and do this for all the beams, this makes it realy slow, so i tried to extract it all at ones and stor it in a matrix and call the Nnegpar function with the matrix reference.
anybody has an idea?
thanks
1 Comment
Answers (0)
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!