필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

verctorize with classes /structs

조회 수: 3 (최근 30일)
jeff wu
jeff wu 2012년 7월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Yash
Yash 2012년 7월 8일
can u post some part of the cod ehere so that i can help,

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by