Connect Multiple Files
Create data connection to multiple files
Minimum Origin Version Required: 2020b
1. string fname$="C:\examples\Gasoline 1.mat%(CRLF)C:\examples\Gasoline 2.mat%(CRLF)C:\examples\Gasoline 3.mat";
2. files2dc dc:=CSV fname:="%Ytest2.csv%(CRLF)%Ytest1.csv" samebk:=1 dlg:=1;
This X-Function is used to connect multiple files at the same time. Currently limited connector types are supported, such as CSV and Excel Connectors for workbook, Matlab, MetroPro, and WDF Connectors for matrix. For some types like CSV Connector, you can specify to import multiple files into the same workbook. During import, you can open the Selection dialog for the first file to specify the import settings. The rest files will follow this settings.