Skip to content

Commit

Permalink
codespell: matlab/ dir, and update ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
mrneont committed May 23, 2024
1 parent e11842d commit 195a47d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions .codespell-ignores
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ parm
parms
pary
poped
prefixin
pres
publick
pyton
Expand Down
2 changes: 1 addition & 1 deletion src/matlab/ShowPlane.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

figure(Opt.Fig);

%get the axis roperties of the figure
%get the axis properties of the figure
Xlim = get(gca,'Xlim');
Ylim = get(gca,'ylim');
Zlim = get(gca,'Zlim');
Expand Down
26 changes: 13 additions & 13 deletions src/matlab/SumsOfSquares.m
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
% dmat(:, num_col0+1:num_col1+num_col0) is the matrix for 1st order contrasts
if (Contr.ord1.tot > 0),
for (i = 1:1:Contr.ord1.tot),
LC.t1(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t1(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
LC.t1(i).value = Contr.ord1.cnt(i).vec * y0; % intensity for this 1st order contrast
tmp = msdenom(Contr.ord1.cnt(i).idx1)*Contr.ord1.cnt(i).scalar;
if (tmp > 0), LC.t1(i).t = LC.t1(i).value/sqrt(tmp); end
Expand All @@ -374,7 +374,7 @@
% dmat(:, num_col0+1:num_col1+num_col0) is the matrix for 1st order contrasts
if (Contr.ord1.tot > 0),
for (i = 1:1:Contr.ord1.tot),
LC.t1(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t1(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
LC.t1(i).value = Contr.ord1.cnt(i).vec * y0; % intensity for this 1st order contrast
tmp = msdenom(Contr.ord1.cnt(i).idx1)*Contr.ord1.cnt(i).scalar;
if (tmp > 0), LC.t1(i).t = LC.t1(i).value/sqrt(tmp); end
Expand All @@ -383,7 +383,7 @@

if (Contr.ord2.tot > 0), % 7 terms: 1 (A); 2 (B); 3 (AB)
for (i = 1:1:Contr.ord2.tot),
LC.t2(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t2(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
LC.t2(i).value = Contr.ord2.cnt(i).vec * y0; % intensity for this 2nd order contrast
tmp = msdenom(Contr.ord2.cnt(i).idx2)*Contr.ord2.cnt(i).scalar;
if (tmp > 0), LC.t2(i).t = LC.t2(i).value/sqrt(tmp); end
Expand All @@ -398,7 +398,7 @@
% dmat(:, num_col0+1:num_col1+num_col0) is the matrix for 1st order contrasts
if (Contr.ord1.tot > 0),
for (i = 1:1:Contr.ord1.tot),
LC.t1(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t1(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
LC.t1(i).value = Contr.ord1.cnt(i).vec * y0; % intensity for this 1st order contrast
tmp = msdenom(Contr.ord1.cnt(i).idx1)*Contr.ord1.cnt(i).scalar;
if (tmp > 0), LC.t1(i).t = LC.t1(i).value/sqrt(tmp); end
Expand All @@ -410,7 +410,7 @@
% dmat(:, num_col0+num_col1+1:num_col1+num_col0+num_col2) is the matrix for 2nd order contrasts
if (Contr.ord2.tot > 0), % 7 terms: 1 (A); 2 (B); 3 (C); 4 (AB), 5 (AC), 6 BC, 7 ABC
for (i = 1:1:Contr.ord2.tot),
LC.t2(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t2(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
switch Contr.ord2.cnt(i).idx1
case 1,
switch Contr.ord2.cnt(i).idx2
Expand All @@ -432,7 +432,7 @@
% dmat(:, num_col0+num_col1+1:num_col1+num_col0+num_col2) is the matrix for 2nd order contrasts
if (Contr.ord3.tot > 0),
for (i = 1:1:Contr.ord3.tot),
LC.t3(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t3(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
switch Contr.ord3.cnt(i).idx1
case 1,
switch Contr.ord3.cnt(i).idx2
Expand All @@ -459,7 +459,7 @@
% dmat(:, num_col0+1:num_col1+num_col0) is the matrix for 1st order contrasts
if (Contr.ord1.tot > 0),
for (i = 1:1:Contr.ord1.tot),
LC.t1(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t1(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
LC.t1(i).value = Contr.ord1.cnt(i).vec * y0; % intensity for this 1st order contrast
tmp = msdenom(Contr.ord1.cnt(i).idx1)*Contr.ord1.cnt(i).scalar;
if (tmp > 0), LC.t1(i).t = LC.t1(i).value/sqrt(tmp); end
Expand All @@ -470,7 +470,7 @@
% dmat(:, num_col0+num_col1+1:num_col1+num_col0+num_col2) is the matrix for 2nd order contrasts
if (Contr.ord2.tot > 0),
for (i = 1:1:Contr.ord2.tot),
LC.t2(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t2(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
% switch dsgn
switch Contr.ord2.cnt(i).idx1
case 1,
Expand Down Expand Up @@ -505,7 +505,7 @@
% dmat(:, num_col0+num_col1+1:num_col1+num_col0+num_col2) is the matrix for 2nd order contrasts
if (Contr.ord3.tot > 0),
for (i = 1:1:Contr.ord3.tot),
LC.t3(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t3(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
% if (dsgn == 3),
switch Contr.ord3.cnt(i).idx1

Expand Down Expand Up @@ -555,7 +555,7 @@
% dmat(:, num_col0+1:num_col1+num_col0) is the matrix for 1st order contrasts
if (Contr.ord1.tot > 0),
for (i = 1:1:Contr.ord1.tot),
LC.t1(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t1(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
LC.t1(i).value = Contr.ord1.cnt(i).vec * y0; % intensity for this 1st order contrast
tmp = msdenom(Contr.ord1.cnt(i).idx1)*Contr.ord1.cnt(i).scalar;
if (tmp > 0), LC.t1(i).t = LC.t1(i).value/sqrt(tmp); end
Expand All @@ -570,7 +570,7 @@

if (Contr.ord2.tot > 0),
for (i = 1:1:Contr.ord2.tot),
LC.t2(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t2(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
% switch dsgn
switch Contr.ord2.cnt(i).idx1
case 1,
Expand Down Expand Up @@ -613,7 +613,7 @@
% dmat(:, num_col0+num_col1+1:num_col1+num_col0+num_col2) is the matrix for 2nd order contrasts
if (Contr.ord3.tot > 0),
for (i = 1:1:Contr.ord3.tot),
LC.t3(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t3(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
% if (dsgn == 3),
switch Contr.ord3.cnt(i).idx1

Expand Down Expand Up @@ -681,7 +681,7 @@

if (Contr.ord4.tot > 0),
for (i = 1:1:Contr.ord4.tot),
LC.t4(i).t = 0; % initializtion in case it is assigned later on due to denominator of 0
LC.t4(i).t = 0; % initialization in case it is assigned later on due to denominator of 0
switch Contr.ord4.cnt(i).idx1

case 1,
Expand Down

0 comments on commit 195a47d

Please sign in to comment.