Print

Print


I had some problems with the “realign and unwarp” process in SPM2, which
prompted the use of your newly revised m-file (spm_uw_estimate.m). However,
I am still having problems, and I was wondering if you might have any
advise.  I am using SPM2 with Matlab 6.5 on a Dell 550 Precision workstation
that runs under Windows 2000.  I am using data that I have analyzed before
with "realign only", and I didn’t have any problems so I don’t believe it is
the data.

When attempting to “realign and unwarp” with your revised version of the
m-file, I received the following error message:

SPM2: spm_realign_ui (v2.10)                       16:20:03 - 12/12/2003
========================================================================
??? Error using ==> reshape
To RESHAPE the number of elements must not change.

Error in ==> C:\MATLAB6p5\spm2\spm_uw_estimate.m
On line 327  ==>    tP.dat = reshape(ds.orig_sfield,tP.dim(1:3));

Error in ==> C:\MATLAB6p5\spm2\spm_realign_ui.m (run_ui)
On line 541  ==>    ds = spm_uw_estimate(P{i}{j},uwe_flags);

Error in ==> C:\MATLAB6p5\spm2\spm_realign_ui.m
On line 320  ==>         run_ui(defaults.realign, defaults.modality,
defaults.unwarp);

??? Error while evaluating uicontrol Callback.


I have since tried to “realign & unwarp” several times with different
settings (model field changes, creation of mean image).  Each time I receive
this same error message. Any advice that you may have on this subject would
be most appreciated.

Thank you very much for your time.

Cheers,

Chris

On Wed, 10 Dec 2003 09:40:14 +0100, Jesper Andersson
<[log in to unmask]> wrote:

>
>>
>>
>> Jesper- did you ever fix this?
>>
>I did, and your explanation is correct. Attached is a new
>spm_uw_estimate.m that SHOULD work. There are a few unrelated new things
>in there that aren't completely tested yet, but as long as you use the
>old GUI routines those bits should never be visited.
>
>So, all you who use SPM on Windows and want to use Unwarp should put
>this in your SPM_updates directory.
>
>And to Joe, sorry for the delay. It just slipped my mind.
>
>Good luck Jesper
>
>
>function ds = spm_uw_estimate(P,par)