R2022b Excessive Runtimes (MacOS)
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Rik
il 10 Mar 2023
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.
Risposte (1)
Vinayak Gupta
il 4 Apr 2023
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 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!