Skip to content

Commit

Permalink
Arrow function only works now on 2014b
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoandreotti committed Apr 2, 2016
1 parent ed559ae commit ddccd49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions subfunctions/data-generation/plot3_volume.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ function plot3_volume(vols)
MX = [vols.mheart{1};M(1,:)];
MY = [vols.mheart{1};M(2,:)];
MZ = [vols.mheart{1};M(3,:)];
if isempty(regexp(version('-release'),'2014'))||isempty(regexp(version('-release'),'2015'))
if isempty(regexp(version('-release'),'2014'))
arrow(MX(1,:),MX(2,:), ARROWHEAD_LENGTH, 'BaseAngle',BASE_ANGLE,'Width',2,'FaceColor','r'); text(MX(2,1),MX(2,2),MX(2,3)+0.05,'x','FontSize',FONT_SIZE+5);
arrow(MY(1,:),MY(2,:), ARROWHEAD_LENGTH, 'BaseAngle',BASE_ANGLE,'Width',2,'FaceColor','r'); text(MY(2,1),MY(2,2),MY(2,3)+0.05,'y','FontSize',FONT_SIZE+5);
arrow(MZ(1,:),MZ(2,:), ARROWHEAD_LENGTH, 'BaseAngle',BASE_ANGLE,'Width',2,'FaceColor','r'); text(MZ(2,1),MZ(2,2),MZ(2,3)+0.05,'z','FontSize',FONT_SIZE+5);
else
disp('Skipping drawing arrows on heart dipoles, only compatible with Matlab 2014 or superior')
disp('Skipping drawing arrows on heart dipoles, only compatible with Matlab 2014. See plot3_volume.m')
end

% = for the foetuses
Expand All @@ -130,7 +130,7 @@ function plot3_volume(vols)
FX = [vols.fheart{ff};F(1,:)];
FY = [vols.fheart{ff};F(2,:)];
FZ = [vols.fheart{ff};F(3,:)];
if isempty(regexp(version('-release'),'2014'))||isempty(regexp(version('-release'),'2015'))
if isempty(regexp(version('-release'),'2014'))
arrow(FX(1,:),FX(2,:), ARROWHEAD_LENGTH, 'BaseAngle',BASE_ANGLE,'Width',2,'FaceColor','b'); text(FX(2,1),FX(2,2),FX(2,3)-0.05,'x','FontSize',FONT_SIZE+5);
arrow(FY(1,:),FY(2,:), ARROWHEAD_LENGTH, 'BaseAngle',BASE_ANGLE,'Width',2,'FaceColor','b'); text(FY(2,1),FY(2,2),FY(2,3)-0.05,'y','FontSize',FONT_SIZE+5);
arrow(FZ(1,:),FZ(2,:), ARROWHEAD_LENGTH, 'BaseAngle',BASE_ANGLE,'Width',2,'FaceColor','b'); text(FZ(2,1),FZ(2,2),FZ(2,3)-0.05,'z','FontSize',FONT_SIZE+5);
Expand Down

0 comments on commit ddccd49

Please sign in to comment.