help > RE: Problem with Matlab2014b
Dec 22, 2014  07:12 AM | Mingrui Xia
RE: Problem with Matlab2014b
Hi, 

Please replace the codes in function 'a=MapMesh1(surf,low,high,alpha)' of BrainNet.m (about in line 992) with the following codes:

function a=MapMesh1(surf,low,high,alpha)
global EC
global cam
a=axes('position',[0.07,0.1,0.8,0.8]);
Brain=trisurf(surf.tri,surf.coord(1,:),surf.coord(2,:),surf.coord(3,:),surf.T,'EdgeColor','none');
% Edited by Mingrui Xia, 20111116, add translucency show
set(Brain,'FaceAlpha',EC.msh.alpha);
colormap(EC.vol.CM);
caxis([low,high]);
switch EC.lot.view_direction
case 1
view(-90,0);
case 2
view(0,90);
case 3
view(180,0);
case 4
view(EC.lot.view_az,EC.lot.view_el);
end
daspect([1 1 1]);
whitebg(gcf,EC.bak.color);
set(gcf,'Color',EC.bak.color,'InvertHardcopy','off');
eval(['material ',EC.glb.material,';']); eval(['shading ',EC.glb.shading,';']);axis off
if alpha~=1
axis tight; eval(['lighting ',EC.glb.lighting,';']); axis vis3d off;
cam= camlight(EC.glb.lightdirection);
end
cb=colorbar('location','East');
set(cb,'Position',[0.9 0.1 0.03 0.3]);
if isempty(strfind(version,'R2014b'))
set(cb,'YAxisLocation','right');
set(cb,'YTick',get(cb,'YLim'));
else
set(cb,'AxisLocation','out');
set(cb,'Ticks',get(cb,'Limits'));
end


We found that the R2014b had a great change in graphics system, which might cause other compatibility issues. We plan to update our toolbox with these new features, however, we recommend to use a lower version before this was done.

Threaded View

TitleAuthorDate
Rodolphe Nenert Nov 21, 2014
Mingrui Xia Nov 22, 2014
Rodolphe Nenert Dec 21, 2014
Rodolphe Nenert Dec 21, 2014
RE: Problem with Matlab2014b
Mingrui Xia Dec 22, 2014