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

time-shift
Marco Ratto 2014-11-27 11:30:10 +01:00
parent 978398323e
commit 1b615b4f70
1 changed files with 5 additions and 1 deletions

View File

@ -87,7 +87,11 @@ end
bf = 0.1;
ffs = 0.05/(p-1);
ffl = (1-2*bf-0.05)/p;
fL = linspace(bf,1-bf+ffs,p+1);
if p>1,
fL = linspace(bf,1-bf+ffs,p+1);
else
fL = bf;
end
for i = 1:p
for j = 1:p
h = axes('position',[fL(i),fL(p+1-j),ffl,ffl]);