From a matlab example, I get an error - Matlab incompatibility??

http://www.aaronscher.com/wireless_com_SDR/RTL_SDR_AM_spectrum_demod.htmlrtl_sdr -f 100500000 -g 40 -s 2500000 -n 25000000 /tmp/FMcapture1.dat

read 100.5 MHz gain 40db 2.5e6 samples/sec 10 seconds output to file

fid = fopen('/tmp/FMcapture1.dat','rb');

y = fread(fid,'uint8=>double');

# y is 8-bit i and q data from an rtlsdr,

y = fread(fid,'uint8=>double');

y = y-127.5;

y = y(1:2:end) + i*y(2:2:end);

plot([1:5000], y(1:5000)); ## looks reasonable

freqz(y(1:5000),1,[-4E6:0.01e6:4E6],2.5E6);

error: __plt2vv__: vector lengths must match

error: called from

__plt__>__plt2vv__ at line 489 column 5

__plt__>__plt2__ at line 248 column 14

__plt__ at line 113 column 17

plot at line 223 column 10

freqz_plot at line 55 column 3

freqz at line 194 column 5

Tom Dean

_______________________________________________

Help-octave mailing list

[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave