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!