Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Matlab functionality in qt cpp
Forum Updated to NodeBB v4.3 + New Features

Matlab functionality in qt cpp

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 501 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harsha123
    wrote on last edited by
    #1

    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.

    Pl45m4P jsulmJ JonBJ 3 Replies Last reply
    0
    • H harsha123

      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.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @harsha123

      What'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?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • H harsha123

        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.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • H Offline
          H Offline
          harsha123
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • H harsha123

            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.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • H Offline
              H Offline
              harsha123
              wrote on last edited by
              #6

              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.

              D 1 Reply Last reply
              1
              • H harsha123

                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.

                D Offline
                D Offline
                DerReisende
                wrote on last edited by
                #7

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

                1 Reply Last reply
                1
                • H Offline
                  H Offline
                  harsha123
                  wrote on last edited by
                  #8

                  yes i used MATLAB generated cpp files, now it is working thank you for the support

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved