I don't know, I readed that in many places, that you could build a C++ library with the Matlab compiler, using matlab code... but yeah, anyway, I guess I'll do it all in C++. Doing the fft in C++ is not a problem, I have it already, the thing is that I have a lot of data from different tests I...
Hey, I have the Matlab Compiler, and there's many options. The one I want is buiding a C++ library.
Apparently I have to use the command MCC, and in its help it says :
MCC MATLAB to C/C++ Compiler (Version 4.0).
MCC [-options] fun [fun2 ...]
OPTIONS:
B <filename>[:<arg>[,<arg>]] Specify...
Hi there.
I'm working on a project in C++. The thing is that all the math part of it I'm doing in Matlab, that I find so much easier on those aspects.
I'm not quite sure how can I incorporate the Matlab code into the C++ program, though. I readed about creating a dll library, but it was really...
Thanks a lot everyone.
I'll do a search around the forum to look for those fft examples, and if I'm still confused about it, I'll post the code I wrote so you can check it. :)
To be more specific:
in the example, after calculatin the fft with Y=fft(y,NFFT)/L , to show the graph (and get the frequency from there), they do:
f = Fs/2*linspace(0,1,NFFT/2+1);
plot(f,2*abs(Y(1:NFFT/2+1);
so maybe I should do something like that (not exactly that though, I guess, cos it...
Thank you very much for both of your answers!
The thing is that I capture the sound of a guitar, let's say an 'A', and after doing the fft and plot the result, I can see a peak where the main frequency should be, but it shows a number that is not supposed to be the one for 'A' (let's say I get...
Hi.
In the example on how to use fft, once they have the signal, they do this:
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(y,NFFT)/L;
Meaning that they get the next power of 2 from length of y (the signal), and then they calculate the NFFT-points fft, to then divide it by...