Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- I want to use MATLAB to simulate the FFT function designed by Altera. I run the Matlab testbench generated by Quartus, but there is always the error Undefined function or method 'Sfftmodel' for input arguments of type 'double'. Error in ==> fft256_model at 41 [roc,ioc,eoc] = Sfftmodel(rin,iin,N,THROUGHPUT,ARCH,DATA_PREC,TWIDDLE_PREC,INVERSE); Dose anyone could help me solve this problem? Thanks --- Quote End --- I got the sfftmodel.mexw32 file from altera's website, and simply changed the extention to .dll. My computer is of 32 bits, but I keep getting the error message: tsfftmodel.dll can't be loaded correctly. Could somebody tell me how to fix the problem? Besides, I simply put this sfftmodel.dll file in the same folder along with all the other files such as fft_32k_tb.m and fft_small_tb.m. Also, is there a way to change this sfftmodel.mexw32 (or sfftmodel.dll) into sfftmodel.m file? Thanks in advance.