Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. CusterJess

    Using Matlab with C++

    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...
  2. CusterJess

    Using Matlab with C++

    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...
  3. CusterJess

    Using Matlab with C++

    Great. I'll go through the compiler documentation and see if I get it clear. Thanks!
  4. CusterJess

    Using Matlab with C++

    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...
  5. CusterJess

    Using fft (Fast Fourier Transform)

    Ok, everything looks correct now :) Thanksalot everyone, you've been tremendly helpful. Cheers!
  6. CusterJess

    Using fft (Fast Fourier Transform)

    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. :)
  7. CusterJess

    Using fft (Fast Fourier Transform)

    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...
  8. CusterJess

    Using fft (Fast Fourier Transform)

    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...
  9. CusterJess

    Using fft (Fast Fourier Transform)

    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...

Part and Inventory Search