R2022b Excessive Runtimes (MacOS)
조회 수: 2 (최근 30일)
이전 댓글 표시
I am attempting to run a small script that utilizes a few methods from a class in my working directory.
The entire script is maybe 10 lines, but will not terminate despite letting the machine run upwards of 3 minutes (with no other apps running in the background). My machine specs and software are as follows:
macOS: Ventura 13.1
Chip: M1
Model: MacBook Pro, 13-inch, 2020, 8 GB Memory
MATLAB Software: R2022b, Update 3 (64-bit) for academic use
I am incredibly new to MATLAB and have not really coded in any Java based language before, so non-technical terms would be appreciated very much.
The script is attempting to do image processing on a single image, which, while somewhat of a hefty operation, I don't think should be maxing out my CPU at >700%.
댓글 수: 1
Rik
2023년 3월 10일
Without the code it is impossible to really help you.
The number of lines is also a poor indication of the complexity, as a small number of lines can still call an intensive process. It is trivial to write a single line that results in days of work for your CPU.
답변 (1개)
Vinayak Gupta
2023년 4월 4일
Hi Kayson
It is very difficult to help without code. ALso, MATLAB for M1 is in open beta right now so, there can be some unexpected behaviours.
General troubleshooting can include:
- Checking your hardware meets the minimum requirements for MATLAB.
- Disabling unneccessary toolboxes and features in matlab.
- Update your code to use built-in functions and vectorized operations wherever possible.
- Also, you can use matlab profiler to figure out what is slowing down your code.
Read more about Image Processing Toolbox
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!