MATLAB is extremely slow on MacBook with Ventura

54 views (last 30 days)
Hello,
In the last months MATLAB has become extremely slow when executing very simple commands (like basic calculations/functions, plotting). This occurs the first time I execute a given command (execution time is 5-10 s), while the second time it takes only fractions of a second.
I am using MATLAB R2023a on a Macbook Air M1 or M2, Ventura 13.3.1.
Does anyone know why and how to solve it? Does anyone know where to look to find more info about MATLAB speed (CPU usage, processes, etc.)? I am not really an expert in this field..

Answers (1)

Divyanshu
Divyanshu on 12 Jun 2023
Hi Alessandro,
The following steps can be tried to speed-up the performance of MATLAB:
  • MATLAB performance can be affected by available memory and swap space. You can check the memory usage in the macOS Activity Monitor and close any unnecessary applications.
  • You can try resetting MATLAB preferences to their default values.
  • MATLAB provides a built-in profiler that allows you to analyse the execution time of your code. Execute the “profile on” command to enable profiling, run your code, and then execute “profile off and use profiler to analyse the results.
Please refer the following documentation for more information:

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!