You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run run_simMegaPressShaped. However I get the following error right at the beginning:
Siemens format .pta RF pulse file detected!! Loading waveform now.
Siemens format .pta RF pulse file detected!! Loading waveform now.
Undefined function ‘resample’ for input arguments of type ‘double’.
Error in rf_resample (line 39)
newWaveform(:,1)=resample(RF_out.waveform(:,1),P,Q);
Error in run_simMegaPressShaped (line 109)
refRF=rf_resample(refRF,100);
I’m not sure what could cause the issue.
I will be grateful for any suggestions.
Best regards
The text was updated successfully, but these errors were encountered:
I think it is quite possible that this issue is due to the fact that the 'resample' function is a member of the MATLAB signal processing toolbox (this is the case at least for MATLAB version 2018, but I'm not sure if this is the same for previous MATLAB versions). Do you have the signal processing toolbox installed with your MATLAB installation? If not, then this would probably explain the error message that you are getting, and you could fix the error by installing the signal processing toolbox. If you do not have access to the signal processing toolbox, then you can simply comment out line 109 of 'run_simMegaPressShaped.m'. This line is designed to speed things up by reducing the number of points in the RF waveform, but the code will still work fine (but a bit slower) without it.
Hint, if you're looking to speed things up further, consider using 'run_simMegaPressShaped_fast.m'. This one produces the same result (minus the spatially resolved output), but in a fraction of the time.
Dear FID-A community,
I would like to ask for your kind support.
I tried to run run_simMegaPressShaped. However I get the following error right at the beginning:
Siemens format .pta RF pulse file detected!! Loading waveform now.
Siemens format .pta RF pulse file detected!! Loading waveform now.
Undefined function ‘resample’ for input arguments of type ‘double’.
Error in rf_resample (line 39)
newWaveform(:,1)=resample(RF_out.waveform(:,1),P,Q);
Error in run_simMegaPressShaped (line 109)
refRF=rf_resample(refRF,100);
I’m not sure what could cause the issue.
I will be grateful for any suggestions.
Best regards
The text was updated successfully, but these errors were encountered: