Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

verctorize with classes /structs

3 Ansichten (letzte 30 Tage)
jeff wu
jeff wu am 8 Jul. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentar
Yash
Yash am 8 Jul. 2012
can u post some part of the cod ehere so that i can help,

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by