欢迎使用CSDN-markdown编辑器

来源:互联网 发布:windows测试端口通不通 编辑:程序博客网 时间:2024/06/09 22:25

使用matlab的workspace导入数据自动生成的代码:

function importfile(fileToRead1)%IMPORTFILE(FILETOREAD1)%  Imports data from the specified file%  FILETOREAD1:  file to read%  Auto-generated by MATLAB on 19-Oct-2015 10:22:11% Import the filenewData1 = load('-mat', fileToRead1);% Create new variables in the base workspace from those fields.vars = fieldnames(newData1);for i = 1:length(vars)    assignin('base', vars{i}, newData1.(vars{i}));end
0 0