does winopen work on Unix platforms
古いコメントを表示
I have a MATLAB application I have written on a Windows10 system which I will compile for Windows, Mac, and Unix. I am using the winopen function in my code which works in my Wondows10 platform. Will it compile OK for Windows use and will it also work for the Mac and Unix compilations?
回答 (2 件)
Steven Lord
2020 年 5 月 20 日
0 投票
winopen will throw an error on non-Windows platforms.
2 件のコメント
Jan Prochazka
2021 年 2 月 11 日
編集済み: Jan Prochazka
2021 年 2 月 11 日
Is there alternative that will not throw an error but open the file?
Steven Lord
2021 年 2 月 11 日
It depends on the file format. If MATLAB knows how to open a specific file format you could use the open function. If MATLAB does not know how to open your specific file format you could extend the functionality of open by writing your own file handling function as described in the documentation page for the open function.
If like Jonathan you're trying to open a PDF that is one of the extensions listed in the description of the name input argument as being supported.
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!