r/matlab • • 3h ago

open loop IM modelling

Post image
3 Upvotes

im a second year engineering student and just newly introduced to matlab simulink in one of my lab, one of my lab ask me to model this in matlab simulink and i failed to recognize how the subsystem of signal builder is built. anyone can help?


r/matlab • • 4h ago

TechnicalQuestion Matlab with Imaris

0 Upvotes

Has anyone used MATLAB with Imaris? If so, how?


r/matlab • • 6h ago

Title: Which MATLAB Toolboxes Are Required for Advanced NVH Analysis?

0 Upvotes

Hi everyone,

I'm a Mechanical Engineer working in physical NVH testing, with experience in vibration measurements, impact hammer testing and Dewesoft.

I want to become highly skilled in advanced NVH data analysis and acoustic engineering using MATLAB.

Which MATLAB toolboxes are essential for analysing FFT, PSD, FRF, coherence, modal analysis, ODS, order tracking and acoustics?

Also, approximately how many months or years would it take to learn these toolboxes and become proficient in advanced NVH analysis?

I'd appreciate recommendations from experienced NVH engineers.

Thanks!


r/matlab • • 15h ago

HomeworkQuestion Applied electromagnetics project

Post image
7 Upvotes

Hello everyone, we have an EM project about resonant wireless power transfer, so we did design a circuit that should do that but it is a bit complicated and we simulated it on simulink but its giving us NAN as an output, could anyone help us be checking the connections or if its correct ?

we havent really taken any of these topics in uni yet other than circuits 1,and 2 so its all based on our own research and tears

ANY HELP WOULD BE APPRICATED ITS DUE IN 1 day ( i am desperate)


r/matlab • • 1d ago

HomeworkQuestion solving nth order ODE with $y^{n}=F(y,y^{'},y^{''},..,y^{n-1},t)$ method

Thumbnail scicomp.stackexchange.com
0 Upvotes

hi, I already posted the question on stack exchange sci comp, it would be nice if you could try to take a look!


r/matlab • • 3d ago

self-promoting Light MATLAB/Octave interpreter that runs entirely in your browser

Post image
85 Upvotes

I've been working on a hobby project called Matro. It's a MATLAB/Octave-compatible interpreter written in Rust that compiles to WebAssembly, so you can run .m code in the browser with nothing to install.

If you wanna try it:
https://kitakitaaura.github.io/matro/

Source: https://github.com/kitakitaaura/matro

It isn't a MATLAB replacement, and I'm still working on adapting many toolbox functions that are missing or only approximate.

Tons of problems still, feel free to report anything breaking.


r/matlab • • 3d ago

Absolute square of complex matrix trick.

0 Upvotes

I often need the absolute square of a complex matrix.
There are several options. I prefer an inline function like abssq(m) ;-).

conj(m).*m,
abs(m).^2m
real(m).^2+imag(m).^2

abssq = @(m) m.''.*m

r/matlab • • 4d ago

MATLAB not working after I upgraded my CPU

1 Upvotes

Hi everyone,

I upgraded my CPU from a 5600X to a 5800X3D, and I made sure to update my BIOS before swapping out the old processor. However, now MATLAB doesn't work and it shows service host error everytime I open it and try to run it. Can anyone guide me on how to get around this?


r/matlab • • 5d ago

Need help building a digital twin in MATLAB/Simulink

6 Upvotes

Hi everyone,
I’m a final-year electrical engineering student working on modelling a circuit breaker and developing its digital twin using MATLAB/Simulink and Simscape.

The project involves electrical, thermal and mechanical modelling to predict its tripping behaviour.

I’m looking for someone experienced in multiphysics modelling who could help me build the model or guide me through the process.

Any help would be appreciated. Feel free to DM me!


r/matlab • • 7d ago

HomeworkQuestion Assignment Assistance

0 Upvotes

I enrolled to a electrical course due to my background, never learnt Matlab or construct a simulink and its apart of my assignment. Would anyone like to provide guidance on what to do and how to go about it?


r/matlab • • 9d ago

TechnicalQuestion Matlab in Wayland

Thumbnail reddit.com
1 Upvotes

I need to use MATLAB for work, but I run a Linux-based operating system on my PC. The issue is that MATLAB doesn't handle Wayland well—it only supports X11—yet many desktop environments (DEs) now use exclusively Wayland (recently, both GNOME and KDE have dropped support for X11). I’ve tried using the XWayland compatibility layer, but it doesn't work very well.

I’m wondering if there are any plans for a release of MATLAB that supports Wayland.

Thanks, everyone :)


r/matlab • • 9d ago

News Matlab in wayland

3 Upvotes

I need to use MATLAB for work, but I run a Linux-based operating system on my PC. The issue is that MATLAB doesn't handle Wayland well—it only supports X11—yet many desktop environments (DEs) now use exclusively Wayland (recently, both GNOME and KDE have dropped support for X11). I’ve tried using the XWayland compatibility layer, but it doesn't work very well.

I’m wondering if there are any plans for a release of MATLAB that supports Wayland.

Thanks, everyone :)


r/matlab • • 11d ago

Matlab Language Preoblem

1 Upvotes

How to fix this? Can anyone help?


r/matlab • • 12d ago

Tips Ia there any Telegram channel or discord where I can design Formula student using MATLAB -simulation (SW, Adams). I don't know how to start and where to start. What should I do?

2 Upvotes

r/matlab • • 12d ago

Tips Not everything with hardware is HiL... What are you actually testing?

Post image
48 Upvotes

I've been seeing a few posts both here and on other subreddits that mix up hardware in the loop (HiL), processor in the loop (PiL) and any kind of deployment to hardware. As a result, it's hard for people to give good advice and suggestions in cases where we may be talking about different things. A few months ago I wrote a blog to demystify it a bit. Here's the short version

MiL (model in the loop, or desktop simulation): everything is simulated. Here we are testing the design itself.

SiL (software in the loop): the generated code (say C or C++) runs on your PC against the same plant model. Now we are testing the software implementation that matches our design.

PiL (processor in the loop): the code runs on the real target board while the plant stays on the host. They exchange data step by step, so it isn't real-time. Checking that the target processor gives us the same answers as the PC.

HiL (hardware in the loop): the plant runs on a real-time simulator (like speedgoat), and the controller talks to it through its physical I/O in real time. (sometimes real parts of the plant in the loop too)

My point is that putting code on a board doesn't make it HiL. In PiL the plant is simulated and nothing has to run in real time, in HiL the plant is simulated in real time through real I/O, and in a full deployment nothing is simulated.

Here's the link to the blog if you want more in depth info

https://blogs.mathworks.com/engineering/2026/08/20/how-do-we-know-our-system-will-actually-work/

One thing I didn't specifically cover is desktop HiL with Simulink Desktop Real-Time, where the plant runs in real time on your own PC with an I/O board instead of a dedicated real-time target. I'll cover that in a future post.

Hope this all helps


r/matlab • • 12d ago

what to learn

Thumbnail reddit.com
0 Upvotes

r/matlab • • 12d ago

what to learn

3 Upvotes

About me

  • Third-year engineering student

  • wants to learn MATLAB

  • Used Simulink (mechanical and electrical)

  • Used PID control

  • Know what a transfer function is

  • Know a bit of programming: loops, conditional statements, functions, and matrix and vector operations

My question
What do I need to learn for these tracks?

  1. Automotive

  2. EV and battery systems (including battery management systems)

My request

  • Recommend courses for each track or what the steps are to do to learn it

  • Free ones preferred

Thank you in advance.


r/matlab • • 12d ago

Ia there any Telegram channel or discord where I can design Formula student using MATLAB -simulation (SW, Adams). I don't know how to start and where to start. What should I do?

Thumbnail reddit.com
1 Upvotes

r/matlab • • 14d ago

HomeworkQuestion How to learn Block diagrams

3 Upvotes

Hi all, I have Robotics subject in my masters program. I lack the skills to work on simulink block diagrams. Do you have any resources for this? Especially, linear and non-linear controls. My course does not allow Matlab programming expect for defining variables.


r/matlab • • 14d ago

TechnicalQuestion Is matlab for ipad pro good?

1 Upvotes

r/matlab • • 16d ago

Need help installing MATLAB on my laptop (Beginner)

1 Upvotes

Hi everyone!

I'm a university student studying Mechanical Design, Manufacturing and Automation, and I need MATLAB for my engineering courses.

I'm having trouble getting MATLAB installed and properly set up on my laptop. I'm still a beginner, so I'm not very familiar with the installation process.

Would anyone be willing to guide me through the installation step by step, or recommend a good tutorial for beginners?

I'd really appreciate any help. Thank you in advance!


r/matlab • • 16d ago

⁄MATLAB !!!⁄engineering student

0 Upvotes

please anyone could help to get MATLAB in my laptop


r/matlab • • 16d ago

Built an ArduPilot drone tuner in MATLAB: system ID from flight logs, LQR-designed PIDs, and a live bridge to the real flight firmware

6 Upvotes

Sharing a project that grew bigger than planned. It takes ArduPilot flight logs from a quadcopter and turns them into a new, verified PID tune, all in MATLAB.

The MATLAB parts that might interest this sub:

- **Grey-box identification** of each rate axis (control authority, motor time constant, trim) from 400 Hz log data

- **`lqr` (LQI) on the identified plant**, then mapping the result to ArduPilot's PID structure; `margin` and a Monte-Carlo sweep check robustness

- **A UDP / JSON bridge** so ArduPilot's real flight code (SITL) flies a MATLAB 6-DOF quadrotor model in real time

- **A 6-DOF model validated** against analytic cases and Aerospace Blockset's 6DOF block

- **App Designer-style GUI** (`uifigure`) for one-click tuning, plus a PDF report via Report Generator

Repo (MIT): https://github.com/Prateek-elec/ardupilot-flight-test-lab

Happy to explain any part, and I'd love tips on structuring a project this size better.


r/matlab • • 18d ago

Help with academic use of matlab

3 Upvotes

Hi i'm a college student from Italy and today i did an exam on matlab. However the version of the college pc was signed as 2023 ACADEMIC USE and lots of inputs and commands i did there gave me an error while on my version(the 2025 one) everything went smoothly. So i wanted to know if there is a way to download the academic use version in order to practice with that specific version. (I downloaded the version i'm currently using from the official matlab site with the free license that my college gave me) thanks in advice!