Commit a882a257 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

- length(args) is used instead of size(args, 2) to avoid to transpose column vectors

parent 2dbeddd1
......@@ -35,7 +35,8 @@ func = str2func(func);
h=10e-6;
pargs=args;
margs=args;
for i=1:size(args,2)
% length(args) is used instead of size(args, 2) to avoid to transpose column vectors
for i=1:length(args)
if i==element
pargs{i} = pargs{i} + h;
margs{i} = margs{i} - h;
......
Supports Markdown
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