Hi,
I just found out about k-wave and am just trying to learn it by looking at some of the examples on my mac OsX Lion.
One thing I looked into was the "Simulating ultrasound beam patterns" example. If I run this, it works fine. However, I wanted to look at the fundamental and harmonic beam profiles and so I set USE_STATISTICS = fase; and ran the example again. Doing this gave me an error message as shown below:
Warning: SPECTRUM is obsolete and will be removed in future versions. Use
the spectrum objects instead, type "help SPECTRUM".
> In spectrum at 103
Warning: Rounding order to nearest integer.
> In signal/private/check_order at 28
In hanning at 25
In spectrum>specchk at 321
In spectrum at 106
Error using spectrum>specchk (line 398)
Requires positive integer values for NFFT and NOVERLAP.
Error in spectrum (line 106)
[x,y,nfft,noverlap,window,Fs,p,dflag]=specchk(varargin);
It seems that the error is generated by the "spectrum" function and I was wondering if anyone could suggest how to go about fixing this issue. Thank you.