Onx

parent e7142824
Pipeline #1875 failed with stage
in 1 minute and 35 seconds
...@@ -55,7 +55,8 @@ return ...@@ -55,7 +55,8 @@ return
%@test:1 %@test:1
% Create a data m-file % Create a data m-file
fid = fopen('data_m_file.m','w'); datafile = tempname;
fid = fopen(datafile,'w');
fprintf(fid,'FREQ__ = 4;'); fprintf(fid,'FREQ__ = 4;');
fprintf(fid,'INIT__ = ''1938Q4'';'); fprintf(fid,'INIT__ = ''1938Q4'';');
fprintf(fid,'NAMES__ = {''azert'';''yuiop''};'); fprintf(fid,'NAMES__ = {''azert'';''yuiop''};');
...@@ -71,9 +72,8 @@ return ...@@ -71,9 +72,8 @@ return
% Try to read the data m-file % Try to read the data m-file
try try
datafile = 'data_m_file.m';
[freq, init, data, varlist, tex, ops, tags] = load_m_file_data(datafile); [freq, init, data, varlist, tex, ops, tags] = load_m_file_data(datafile);
delete('data_m_file.m'); delete(datafile);
t(1) = 1; t(1) = 1;
catch exception catch exception
t(1) = 0; t(1) = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment