[Homer-users] possible error in hmrOD2Conc using cm as SpatialUnit
David Boas
dboas at nmr.mgh.harvard.edu
Fri May 16 09:49:45 EDT 2014
thank you for catching this.
I have committed the change back to the developers version.
On 5/12/14, 4:12 AM, Karl-Heinz Untch wrote:
> Good morning,
>
> I encountered an error which took me quite a lot of time to get behind
> it and maybe there are also others who have the same problem, so I
> want to report it here.
> When using the OD2Conc conversion, the inversion of the extinction
> coefficients e in hmrOD2Conc won't succeed if the SpatialUnit is set
> to 'cm', since the Variable e returned by the GetExtinctions function
> returns a 2x5 matrix (using 2 wavelengths), which is then pruned to a
> 2x2 matrix before the inversion, but only if the Spatial Unit is set
> to mm (or not specified).
>
> I suggest adding a further elseif-option in hmrOD2Conc line 43 with
> these lines
> elseif strcmpi(SD.SpatialUnit,'cm')
> e = e(:,1:2) ;
>
> Best regards from Frankfurt/Germany,
> Karl-Heinz
>
>
> _______________________________________________
> Homer-users mailing list
> Homer-users at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/homer-users
--
==============================================================
fNIRS 2014 Conference in Montreal Oct 10-12, 2014
The conference is preceded by a one day educational workshop.
Abstract Deadline June 16, 2014
see http://fnirs2014.org for more details
==============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20140516/d9ed1a2d/attachment.html
More information about the Homer-users
mailing list