How can I increase the CPU utilization during the use of the function "matlabFunction"
이전 댓글 표시
Hello,
I am working on a linked chain model using symbolic notation with MuPad. After I create the matrix of the model in MuPad, I reassigne it in the Matlab notebook with the function "getVar" then I create a function with "matlabFunction".
The matrix I calculate are quite big (more than 1Mo text) and it can take several hours to write them. When I look at the performance of the computer (I have a intel i7 with 2,6GHz and 8Go of RAM), I realize that matlab only use 25% of the CPU during the writing of the function. I there any way to increase this number during this precise function ?
Thank you in advance.
댓글 수: 3
Walter Roberson
2015년 11월 6일
Is your system multi-core? Could the "25%" be representing that one core is being kept completely busy while the other cores are idle?
Mathias Blandeau
2015년 11월 6일
Walter Roberson
2015년 11월 7일
If you have hyper-threading turned on in your system, your process monitor might be reading the 2 cores as being 4 effective cores and calculating the CPU against that. The relevant code is simply not multi-threaded at this time, so you will not get more than a full CPU dedicated to the task.
답변 (2개)
Walter Roberson
2015년 11월 6일
0 개 추천
Consider generating the code in MuPAD; see http://www.mathworks.com/help/symbolic/create-matlab-functions-from-mupad-expressions.html#bswkjwe-1
카테고리
도움말 센터 및 File Exchange에서 Code Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!