R2022b Excessive Runtimes (MacOS)

1 次查看(过去 30 天)
Kayson
Kayson 2023-3-10
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
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
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

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by