Reading file names with case insensitivity
25 ビュー (過去 30 日間)
古いコメントを表示
Hello I do a decent amount of Matlab programming in both Windows and Linux, and also use Dropbox of my means for sharing files between both operating systems.
When I save an stl file in windows it saves it as example.stl when I open that file again in Linux it makes it example.STL This forces me to either rename every stl file to be lowercase when I am in Linux or to switch my Matlab code to have stl uppercase.
Is there a way I can read in file names and not be case sensitive?
0 件のコメント
採用された回答
Mischa Kim
2014 年 3 月 4 日
編集済み: Mischa Kim
2014 年 3 月 4 日
You could use the lower command to convert the file name string to lower case, before opening the file.
lower('example.STL')
ans =
example.stl
3 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!