mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-07-19 05:24:29 -04:00
simplified testing
This commit is contained in:
12
test/fileload.m
Executable file
12
test/fileload.m
Executable file
@ -0,0 +1,12 @@
|
||||
function data = fileload( fname , prec , iscomplex )
|
||||
|
||||
f = fopen(fname,"r", "native");
|
||||
data = fread(f,Inf,prec)';
|
||||
len=length(data);
|
||||
fclose(f);
|
||||
|
||||
if iscomplex,
|
||||
data = (data(1:2:len) + j*data(2:2:len) );
|
||||
endif
|
||||
|
||||
endfunction
|
Reference in New Issue
Block a user