matlab 按照自然数顺序读入文件我要分享

Matlab reads files in the order of natural numbers

关注次数: 146

下载次数: 0

文件大小: 1.36 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:假设你有3、13、113三个文件,想要按照3-13-113的顺序读入,但是用dir的时候读入顺序是113-13-3,这时候想要实现按照自然数递增顺序读入的时候,最简单的方法就是用uigetfile函数:uigetfile会弹出一个选择文件的窗口,在窗口中调整你的文件顺序,全选读入,就会按照相应的顺序读入。电脑上可以实现的排列顺序,都可以实现。


English Description:

Suppose you have 3, 13, 113 three files, you want to read in the order of 3-13-113, but when you use dir, the order is 113-13-3. At this point, when you want to achieve the natural number in ascending order, the simplest way is to use the uigetfile function: uigetfile will pop up a window to select the file, adjust your file order in the window, and select the whole input, then follow it. Read in the corresponding order. Computer can achieve the order, can be achieved.


代码预览

相关推荐