help > Typo in 13i conn_batch?
Showing 1-2 of 2 posts
Display:
Results per page:
Dec 8, 2011  12:12 AM | James Lee
Typo in 13i conn_batch?
Thank you for a great connectivity tool!

I wonder if there are some typos in conn_batch.m, around line 391. The batch manual refers to type, kernelsupport, etc subfields for batch.Analysis.measures (plural), but below they are checked for in batch.Analysis.measure (singular).

Jim Lee

% JNL. Change 4 lines below to Analysis.measures?            if ~isfield(batch.Analysis.measure,'type'),batch.Analysis.measure.type=[]; end            if ~isfield(batch.Analysis.measure,'kernelsupport'),batch.Analysis.measure.kernelsupport=[]; end            if ~isfield(batch.Analysis.measure,'kernelshape'),batch.Analysis.measure.kernelshape=[]; end            if ~isfield(batch.Analysis.measure,'dimensions'),batch.Analysis.measure.dimensions=[]; end
Dec 9, 2011  01:12 AM | Alfonso Nieto-Castanon - Boston University
RE: Typo in 13i conn_batch?
Hi Jim,
You are exactly right, please feel free to correct those instances of 'measure' to 'measures' or use the attached conn_batch.m file instead (for version conn13i). I have added this correction to the list of bug fixes in the new release of the toolbox that should come out soon.
Thanks!
Alfonso
Originally posted by James Lee:
Thank you for a great connectivity tool!

I wonder if there are some typos in conn_batch.m, around line 391. The batch manual refers to type, kernelsupport, etc subfields for batch.Analysis.measures (plural), but below they are checked for in batch.Analysis.measure (singular).

Jim Lee

% JNL. Change 4 lines below to Analysis.measures?            if ~isfield(batch.Analysis.measure,'type'),batch.Analysis.measure.type=[]; end            if ~isfield(batch.Analysis.measure,'kernelsupport'),batch.Analysis.measure.kernelsupport=[]; end            if ~isfield(batch.Analysis.measure,'kernelshape'),batch.Analysis.measure.kernelshape=[]; end            if ~isfield(batch.Analysis.measure,'dimensions'),batch.Analysis.measure.dimensions=[]; end
Attachment: conn_batch.m