Skip to content

Commit ddccd49

Browse files
Arrow function only works now on 2014b
1 parent ed559ae commit ddccd49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subfunctions/data-generation/plot3_volume.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ function plot3_volume(vols)
114114
MX = [vols.mheart{1};M(1,:)];
115115
MY = [vols.mheart{1};M(2,:)];
116116
MZ = [vols.mheart{1};M(3,:)];
117-
if isempty(regexp(version('-release'),'2014'))||isempty(regexp(version('-release'),'2015'))
117+
if isempty(regexp(version('-release'),'2014'))
118118
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);
119119
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);
120120
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);
121121
else
122-
disp('Skipping drawing arrows on heart dipoles, only compatible with Matlab 2014 or superior')
122+
disp('Skipping drawing arrows on heart dipoles, only compatible with Matlab 2014. See plot3_volume.m')
123123
end
124124

125125
% = for the foetuses
@@ -130,7 +130,7 @@ function plot3_volume(vols)
130130
FX = [vols.fheart{ff};F(1,:)];
131131
FY = [vols.fheart{ff};F(2,:)];
132132
FZ = [vols.fheart{ff};F(3,:)];
133-
if isempty(regexp(version('-release'),'2014'))||isempty(regexp(version('-release'),'2015'))
133+
if isempty(regexp(version('-release'),'2014'))
134134
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);
135135
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);
136136
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);

0 commit comments

Comments
 (0)