MATLAB R2020a on macOS is unable to select/open data files

조회 수: 4 (최근 30일)
Aditya Singh
Aditya Singh 2020년 6월 20일
답변: Satwik 2024년 9월 20일
I am using MATLAB R2020a on macOS and when I try to select txt/dat data files to analyse it, MATLAB is unable to select dat/txt files (black region). See attached screenshot. I click on particular file but it does not select and I can not open it. See red marked region, "open" option in mac is also not working unlike "cancel"
Mac details: macOS catalina, version 10.15.5
  댓글 수: 2
Steinar Bråten
Steinar Bråten 2021년 3월 8일
I have the same problem on a Mac Mini M1!
And therefor no alternative Matlab version either!
Yongru Wang
Yongru Wang 2024년 2월 5일
how to solve it?

댓글을 달려면 로그인하십시오.

답변 (1개)

Satwik
Satwik 2024년 9월 20일
Hi Aditya,
I encountered a similar issue when trying to access non-MATLAB files on macOS using MATLAB. Although I am not entirely sure of the cause, here are two workarounds that might help:
1. Use the ‘uigetfile’ function with a wildcard input. This will display all file types, and they will all be selectable:
>> uigetfile('*.*');
2. When saving your data file, append ‘.m’ to the end of the filename (e.g., fileName.txt.m). This makes it selectable in the file dialog, and MATLAB should be able to process it as usual.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by