Skip to content

Commit 7316269

Browse files
author
Jon-Fredrik Nielsen
committed
Set 'b1max' in .mod header back to sysGE.maxRF
On branch develop modified: writemod.m
1 parent 1519e85 commit 7316269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+toppe/writemod.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ function writemod(sysGE, varargin)
144144
dtycyc = length(find(abs(b1)>0.2236*max(abs(b1)))) / length(b1);
145145
maxpw = dtycyc;
146146
num = 1;
147-
%max_b1 = sysGE.maxRF; % Gauss. Full instruction amplitude (32766) should produce max_b1 RF amplitude,
148-
max_b1 = max(abs(b1(:))); % Gauss
147+
max_b1 = sysGE.maxRF; % Gauss. Full instruction amplitude (32766) should produce max_b1 RF amplitude,
148+
%max_b1 = max(abs(b1(:))); % Gauss
149149
% as long as other RF .mod files (if any) use the same max_b1.
150150
max_int_b1_sq = max( cumsum(abs(b1).^2)*dt*1e3 ); % Gauss^2 - ms
151151
max_rms_b1 = sqrt(mean(abs(b1).^2)); % Gauss

0 commit comments

Comments
 (0)