How to Use MATLAB with VS Code [2024]

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 21

  • @vahdan97
    @vahdan97 18 годин тому

    Wait wait, I can't believe that. Finally!!! My eyes will thank me a lot for this! Thank you!

  • @xiaoer-nq3pk
    @xiaoer-nq3pk 4 місяці тому +2

    thank you for your tutorial

  • @afrizalprojects1142
    @afrizalprojects1142 8 місяців тому +1

    can we create 3D plot in vs code when connect with matlab?

    • @philparisi_
      @philparisi_  7 місяців тому

      Hey there, yes! You can do pretty much everything you can do with MATLAB IDE with VS code. Some advanced features of the code editor (like debugging) are still coming, but the essentials like plotting are all there.
      My understanding is that MATLAB kinda ‘runs headless in the background’ and VS code is accessing that MALTAB instance. Of course, that’s not correct but it’s my mental model!

  • @SattwikSahuIISERB
    @SattwikSahuIISERB 5 місяців тому +1

    How to use Neovim for MATLAB?

    • @philparisi_
      @philparisi_  4 місяці тому

      Sorry, no video for that yet and I haven’t tried myself yet!

  • @antoniodimauro7838
    @antoniodimauro7838 3 місяці тому +2

    Thank you!! Very clear! Can I run C++ code integrated with MATLAB in VSCode? I need a more powerful language, like C++, to run CFD simulations, but I really like the visualization tools that MATLAB has to offer. Thanks in advance!

    • @philparisi_
      @philparisi_  3 місяці тому +1

      Hi there! Good question and I don’t know if you can directly run C++ thru the MATLAB VSCode extension. What you could do, is run your C++ code and store the data you want to visualize in a common format (.csv). Then, in the same library, have visualization code that can ingest those csvs.
      If you wanna dig in further, I’d recommend reaching out directly to MathWorks for advice!
      And you could maybe even have the c++ code trigger running MATLAB code if you didnt want to do it manually… or a bash script… but that gets away from VS code then.

    • @antoniodimauro7838
      @antoniodimauro7838 3 місяці тому +1

      @@philparisi_ Thank you very much! Very insightful! I didn’t think about the csv, probably that will be perfect for what I need. The only limiting factor might be the amount of data that needs to be stored. Probably a live plotting would be more practical. Apparently a MATLAB session can be run through C++, but I’m not sure if it works with VSCode as you said. Thanks again, I will update you in case I figure it out.

    • @philparisi_
      @philparisi_  3 місяці тому +1

      @@antoniodimauro7838 good points all around, let me know if you find an approach that works!

  • @ilovebaking-v2v
    @ilovebaking-v2v 8 місяців тому +2

    Hi there, a quick question to you as an engineer. Is MATLAB popularly used or is Python/C++ popularly used in engineering? I've read some articles that C++ is the way to go with engineering but I wasn't sure why. And in this channel, the topic is on MATLAB so I was a bit confused what is what. Thank you in advance.

    • @philparisi_
      @philparisi_  7 місяців тому

      Hi there, thanks for your patience with my reply.
      It depends on the type of engineering. Most of my mechanical engineering friends haven't needed MATLAB (or other languages) in their product design roles. Rather, they depend on CAD software.
      If you start to work with data in your career, MATLAB and Python are your friends. If you get into statistics and biological sciences, R. If you do embedded systems and low-level fast processing, then C/C++ becomes more relevant.
      Ultimately, look at the job roles that most interest you, see the programming requirements, and lean towards learning those languages!

  • @tsbluster7828
    @tsbluster7828 8 місяців тому +2

    Thank you.

    • @philparisi_
      @philparisi_  8 місяців тому +1

      Happy to help! Thanks for tuning in and have a great weekend!

  • @AstroBrindan
    @AstroBrindan 5 місяців тому

    What font are you
    using in matlab?

    • @philparisi_
      @philparisi_  4 місяці тому

      I think it’s Courier New!

  • @hylk5395
    @hylk5395 8 місяців тому +1

    Nice!

    • @philparisi_
      @philparisi_  8 місяців тому

      👍🏽👍🏽👍🏽

  • @TheMaruma
    @TheMaruma 4 місяці тому +1

    Is it run the code or should i install matlab?

    • @philparisi_
      @philparisi_  4 місяці тому

      You need to install MATLAB on your desktop as well!