[Homer-users] Error

David Boas dboas at nmr.mgh.harvard.edu
Thu Oct 4 08:49:40 EDT 2012
Search archives:

Good catch.

I have fixed this file to handle more than two wavelengths.
Basically, idx2 in the line you copied below needs to be idx2'

I will send you the updated hmrOD2Conc.m file in a separate email.

David



On 10/2/12 11:56 AM, austin1 wrote:
>
> I am getting the following error in Homer2 when I go to "Calculate HRF"
>
> Does anyone have any suggestions on why the error?
>
> Error using horzcat
>
> CAT arguments dimensions are not consistent.
>
> Error in hmrOD2Conc (line 34)
>
> dc(:,:,idx) = ( einv * (dod(:,[idx1idx2])./(ones(nTpts,1)*rho*ppf))' )';
>
> The expression generating the error is [idx1 idx2]
>
> Both idx1 and idx2 come from the variable ml making me believe I have 
> created ml incorrectly
>
> I have one source, with 3 wavelengths and i have one detector
>
> So I created the following variables:
>
> SD.Lambda [670   735   780   830]
>
> nSrcs 1
>
> nDets 1
>
> SD.SrcPos [0 0 0]
>
> SD.DetPos [2 0 0] (since source and detector have a 2cm separation
>
> ml =
>
> 1 1 1 1
>
> 1 1 1 2
>
> 1 1 1 3
>
> 1 1 1 4
>
> First two columns are 1 because there is only one source and one detector
>
> Third col is one because it is a CW device
>
> Fourth column are indices of the wavelengths
>
>
>
>
> _______________________________________________
> Homer-users mailing list
> Homer-users at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/homer-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20121004/d2a2aceb/attachment.html 


More information about the Homer-users mailing list