Is MATLAB not case sensitive while using function load
8 次查看(过去 30 天)
显示 更早的评论
I stored a file with name 'NOISY_CHANNEL_30DB' However I can load file by specifying the path as follows:
a=load('D:\NOISY_CHANNEL_30dB.mat');
and
B=load('D:\NOISY_CHANNEL_30DB.mat');
and when I print the values of both the variables it is same.
4 个评论
Dyuman Joshi
2024-5-28
I think you replied to a wrong part of my comment.
"And same happened when i loaded the file using mat73 function in Python"
Then, once again, the values might just be equal.
How did you ensure that the values are not equal in the first place?
Stephen23
2024-5-28
"and when I print the values of both the variables it is same."
Of course they are the same: you loaded one file into two different variables. If they were different... that would be a problem.
回答(1 个)
Lokesh
2024-5-28
Hi Anusaya,
The behavior you described with the 'load' function is related to the file system, not MATLAB itself. On Windows systems, file names are case-insensitive, while on UNIX systems, they are case-sensitive. So, when you load a file using 'load', the case of the file name doesn’t matter because the operating system handles it.
Please refer to the discussion in the following MATLAB Answer for more information:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!