Skip to content
Snippets Groups Projects
Verified Commit 8f47ac16 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

remove unused file

parent 22e769fa
No related branches found
No related tags found
No related merge requests found
function loadInWorkspaceAndM_(filename)
if ~evalin('base','exist(''M_'',''var'')') ...
|| ~evalin('base','isstruct(M_)') ...
|| evalin('base','isequal(M_, struct())')
error('Didn''t find M_ in base workspace; you must furst run the .mod file before running this file.')
end
fid = fopen(filename);
if fid < 0
error(['Problem encountered opening ' filename]);
end
filevars = textscan(fid,'%s=%*s');
fclose(fid);
evalin('base', filename);
for i=1:length(filevars)
M_idx = find(not(cellfun('isempty', evalin('base', ['strfind(M_.param_names, ' filevars(i) ');'])));
if ~isempty(M_idx)
evalin('base', ['M_.params(' M_idx ') = ' filevars(i) ';']);
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment