Forum Discussion
Hi,
Thanks for your help. Sorry for the inconvenience. I still get into the following error:
Error using .*
Matrix dimensions must agree.
Error in fir_inspect (line 5)
sinevector=(2^(inBits-1)-1)*sin(2*pi*clock.*freqsMhz'/smpRateMhz);
It seems like the clock dimension mismatches with freqsMhz. Also, I have tested manually change the clock to 1x65, it will prompt another error on " '/ " operator. I changed to " ./ " the file can run but the simulation output is a waveform like plot which I believe due to incorrect changes from my side.
Note that I have not run the Modelsim but just testing on the .m file since there is a decim_fir_output.txt available in your folder.
Please let me know if there is any concern. Thank you.
Thanks for your patience. I've never had so much trouble with matlab compatibility... Please try the attached.