Can NOT drag m/mat file when matlab launched from command line

2 ビュー (過去 30 日間)
XGQ
XGQ 2023 年 1 月 24 日
回答済み: Satwik 2025 年 1 月 22 日 11:05
When matlab launched from windows file explorer(double click matlab.exe or .m/.mat file ect), the (m/mat)file drag feature works fine.
When matlab launched from command line(with or without administrator priviliges), matlab or start matlab, the (m/mat)file drag feature does not work, the cursor become a stop sign.
Any idea why?

回答 (1 件)

Satwik
Satwik 2025 年 1 月 22 日 11:05
Hi XGQ,
The issue happens usually only when running MATLAB as an administrator.
This is a Windows Security feature. 'Drag and drop' are messages and sending messages from a program with normal rights, to an application with admin rights can cause security issue. That is why we cannot ‘drag and drop’ files onto MATLAB while running in the admin mode.
Running MATLAB without admin rights should resolve the issue.

カテゴリ

Help Center および File ExchangeProgramming Utilities についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by