History of AFNI updates  

|
Daniel Glen
January 28, 2009 11:05AM
I didn't run into any problems using your command in matlab using your exact command (you're right; the spaces don't matter; they are outside the quotes for matlab variables). My .bashrc is empty though, so that's a small difference. You can specify the path to 3dUndump in the command instead. You can also try using 'cat' to check the numbers are getting piped correctly like this:

>> cmd = ['source ~/.bashrc; echo -45 -67 36 | cat -']

cmd =

source ~/.bashrc; echo -45 -67 36 | cat -

>> system(cmd);
-45 -67 36

If you would like to try the Matlab library, MatAFNI_Demo.m provides some examples of using the various functions, particularly the WriteBrik function.
Subject Author Posted

3dUndump trough Matlab of from terminal does not produce same result

Maarten Mennes January 26, 2009 10:19AM

Re: 3dUndump trough Matlab of from terminal does not produce same result

Daniel Glen January 26, 2009 12:33PM

Re: 3dUndump trough Matlab of from terminal does not produce same result

Maarten Mennes January 27, 2009 05:37PM

Re: 3dUndump trough Matlab of from terminal does not produce same result

Daniel Glen January 28, 2009 11:05AM

Re: 3dUndump trough Matlab of from terminal does not produce same result

Maarten Mennes January 28, 2009 02:16PM

Re: 3dUndump trough Matlab of from terminal does not produce same result

Daniel Glen January 28, 2009 02:33PM