Commit e6cc9702 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug (wrong variable name).

parent 3ef5e579
......@@ -50,7 +50,7 @@ if nargin>1 || isempty(tpath)
end
mex_flag = 0;
if exist(name1)==3
if exist(fname)==3
mex_flag = 1;
end
......
......@@ -152,6 +152,6 @@ end
function file = append_extension_if_needed(file)
if ~isequal(file(end-1,end),'.m')
if ~isequal(file(end-1:end),'.m')
file = [file '.m'];
end
\ No newline at end of file
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