Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Data being plotted too slowly
1 回表示 (過去 30 日間)
古いコメントを表示
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
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
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!