OSX El Capitan, MATLAB r2015b, Editor focus when run in no-desktop

1 次查看(过去 30 天)
When I run matlab r2015b in the terminal (-no-desktop), then open an editor ('edit'), I can't actually type in the editor after switching between the windows (terminal and editor). The editor windows get the focus, and I can click all the buttons. I can't actually set my cursor position or type though. The current workaround for me is opening a figure window. If I have another matlab window open (figure or preferences, etc.) switching from that window to the editor makes the editor window act as expected. Whenever I switch from the terminal to the editor, however, I get the behavior described above.

回答(2 个)

Vishal Neelagiri
Vishal Neelagiri 2017-1-17
There are a few things that you can try that seem to resolve the problem:
1) It is possible that some MATLAB preferences are corrupt. You can backup your preferences and let MATLAB create new default preferences to see if they resolve the problem.
If you have had previous releases of MATLAB, backup your preferences for those as well in a similar fashion in order to let MATLAB create default preferences instead of migrating the preferences from a previous release.
To back up your preferences, use the following instructions:
- Locate the preference directory using the PREFDIR command in MATLAB. - Exit MATLAB. - Rename the preference directory by appending something like "bak" to the directory name. For example, "R13bak". - Start MATLAB.
Is the problem still reproducible? If the problem is not resolved, you can restore your preferences using the following instructions:
- Exit MATLAB. - Delete the newly created preference directory. - Rename the backed up directory to the original name. For example, rename "R13bak" to "R13".
2) If your computer is having trouble switching between applications, it is likely that there is insufficient RAM to store all the memory required for the process. Your operating system must then page memory back and forth from virtual memory to RAM, which can be slow. Try increasing your computer's RAM.

Michael Shomin
Michael Shomin 2017-1-18
Hi Vishal, Thanks for the suggestions. I moved my configurations and tried with the default preferences. The problem still persists. Note that there is plenty of memory and the application switching is working fine.
I have also noticed that this only happens when I click in the editor (changing focus from the terminal). If I switch with Cmd-Tab, everything works properly. If I click in the editor to change focus, however, I can't type. If I then select another MATLAB window (like a figure) and then back to the editor, it works properly.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by