Skip to content
Snippets Groups Projects
Commit 1b615b4f authored by Marco Ratto's avatar Marco Ratto
Browse files

Bug fix for different behaviour of linspace in older MATLAB varsions (crashed in MATLAB R2011).

parent 97839832
Branches
Tags
1 merge request!808Gsa bug fix and naming fix
...@@ -87,7 +87,11 @@ end ...@@ -87,7 +87,11 @@ end
bf = 0.1; bf = 0.1;
ffs = 0.05/(p-1); ffs = 0.05/(p-1);
ffl = (1-2*bf-0.05)/p; ffl = (1-2*bf-0.05)/p;
if p>1,
fL = linspace(bf,1-bf+ffs,p+1); fL = linspace(bf,1-bf+ffs,p+1);
else
fL = bf;
end
for i = 1:p for i = 1:p
for j = 1:p for j = 1:p
h = axes('position',[fL(i),fL(p+1-j),ffl,ffl]); h = axes('position',[fL(i),fL(p+1-j),ffl,ffl]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment