Matlab functionality in qt cpp
-
wrote on 27 Sept 2022, 12:50 last edited by
I am very new to matlab, so i want to use function like fft and some other signal processing function present in matlab to be used in QT,is there way to add the header files of matlab and call matlab internal functions in qt cpp.
-
I am very new to matlab, so i want to use function like fft and some other signal processing function present in matlab to be used in QT,is there way to add the header files of matlab and call matlab internal functions in qt cpp.
wrote on 27 Sept 2022, 12:55 last edited byWhat's the reason for this? Since you've said, that you are new to matlab, why still want to call matlab stuff from C++ or Qt in general?
-
I am very new to matlab, so i want to use function like fft and some other signal processing function present in matlab to be used in QT,is there way to add the header files of matlab and call matlab internal functions in qt cpp.
@harsha123 This has nothing to do with Qt.
Take a look at https://de.mathworks.com/matlabcentral/answers/37814-embedding-matlab-into-c-and-vice-versa -
wrote on 27 Sept 2022, 13:01 last edited by
because in my project i want fft function, so i tried with c code and also third party library but that values are not matching with matlab generated values so my output is not as expected that is the reason i want to use matlab in qt.Finally the project should be done in qt cpp not in matlab.
-
I am very new to matlab, so i want to use function like fft and some other signal processing function present in matlab to be used in QT,is there way to add the header files of matlab and call matlab internal functions in qt cpp.
wrote on 27 Sept 2022, 13:03 last edited by@harsha123
Qt is not a language, just a set of libraries, so there is no such thing as "qt cpp".As the others have said, you can use Matlab with C++, including when you use Qt. I will just mention that Qt bindings are also available for Python. I have not used Matlab, but you might prefer working with Python over C++, just a heads-up so you know it is an option.
-
wrote on 27 Sept 2022, 13:12 last edited by
whole project is done in cpp so i want this also to be done in cpp only that is the reason i am trying for this.
-
whole project is done in cpp so i want this also to be done in cpp only that is the reason i am trying for this.
wrote on 27 Sept 2022, 13:15 last edited by@harsha123 If you have the proper license you could use MATLAB Coder to generate C++ code of your matlab program/function. This can be linked then into your C++ program.
-
wrote on 28 Sept 2022, 06:45 last edited by
yes i used MATLAB generated cpp files, now it is working thank you for the support
1/8