필터 지우기
필터 지우기

Info

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

Data being plotted too slowly

조회 수: 1 (최근 30일)
Jacque
Jacque 2012년 3월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
With regard to my previous questions, this same simulation is not running at the speed it's supposed to.
For some reason the simulation is running reeeeally slow (it's supposed to take 20 seconds but it's taking about 10 minutes) so
I don't know if it's due to my processor speed (I'm running on a MacBook with a 2.4GHz processor and 2GB of memory with standard graphics)
Any comments?
Thanks
[Merged information from comment]
The code I'm using for the plot is:
x(1)=X01; y(1)=Y01; z(1)=Z01;
x(2)=X02; y(2)=Y02; z(2)=Z02;
x(3)=X03; y(3)=Y03; z(3)=Z03;
x(4)=X04; y(4)=Y04; z(4)=Z04;
figure(1);
plot3(X01,Y01,Z01,'go',X02,Y02,Z02,'ro',X03,Y03,Z03,'yo',X04,Y04,Z04,'bo');
patch(x,y,z,'c');
axis([-0.2 0.6 -0.2 1.2 0 0.2]);
view([-37.5,30]);
grid on;
camlight;
drawnow
where X/Y/Z0/1/2/3/4 have previously defined or calculated. The times defined previously refer to times up to 20 seconds, but the simulation is taking minutes.
Any tips?
  댓글 수: 2
Oleg Komarov
Oleg Komarov 2012년 3월 3일
Referencing to another question, which is also unanswered and does not contain a minimum working example makes it very hard to help:
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Walter Roberson
Walter Roberson 2012년 3월 3일
"the same simulation" might refer to http://www.mathworks.com/matlabcentral/answers/31036-plot-data-in-real-time

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by