R2022b Excessive Runtimes (MacOS)
1 回表示 (過去 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!