Clear Filters
Clear Filters

Matlab cannot open .m file

4 views (last 30 days)
Wei Zhang
Wei Zhang on 15 Dec 2021
Answered: Vidhi Agarwal on 16 Feb 2024
Matlab cannot browse folders in the white strip (It stays as "C:"). Also when I click a ".m" file, it runs as flowing, forever. I tried uninstalling MATLAB and install again, but it is of no use. Anyone knows why it is like this? Thanks

Answers (1)

Vidhi Agarwal
Vidhi Agarwal on 16 Feb 2024
Hi Wei,
I understand that your MATLAB is experiencing loading issues, and the problem persists despite attempts to restart the application.
You can follow the following steps to resolve this issue:
  • Reset MATLAB Preferences: Corrupted MATLAB preferences can cause unusual behaviour. You can reset MATLAB's preferences to their default settings by following these steps:
  1. Close MATLAB.
  2. Navigate to MATLAB's preferences directory. This is typically located in the user's home directory, under MATLAB\R20xx\ (where R20xx is the version of MATLAB you are using).
  3. Rename the preferences folder (for example, to preferences_old) to back it up.
  4. Restart MATLAB. It will create a new preferences folder with default settings.
  • Run MATLAB as an Administrator: There may be permission issues that prevent MATLAB from accessing certain folders or files. Try running MATLAB as an administrator to see if this resolves the issue.
  • Check for Updates or Patches: Make sure you have the latest updates or patches for your MATLAB version. Sometimes, bugs are fixed in subsequent releases or patches.
  • Check MATLAB Path: Ensure that the MATLAB path is set correctly and does not include directories that could cause conflicts or are not accessible.
  • Check Operating System Compatibility: Ensure that your operating system is compatible with the version of MATLAB you are using. Incompatibilities could lead to unexpected behaviour.
  • Use MATLAB Support: If none of the above steps resolve the issue, you may need to contact MathWorks support for help. They can provide more detailed troubleshooting steps specific to your situation.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!