can u post some part of the cod ehere so that i can help,
Info
此问题已关闭。 请重新打开它进行编辑或回答。
verctorize with classes /structs
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!