r/matlab • u/Adventurous-Chair590 • 59m ago
HomeworkQuestion Need help about project for biomedical signal process in Matlab?
Code or project can help
r/matlab • u/Adventurous-Chair590 • 59m ago
Code or project can help
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 :)
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 • u/mohidul_mi • 3d ago
r/matlab • u/Barnowl93 • 3d ago
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
About me
My question
What do I need to learn for these tracks?
My request
Thank you in advance.
r/matlab • u/mohidul_mi • 3d ago
r/matlab • u/Soulja7861 • 5d ago
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 • u/Suspicious_Town_2048 • 7d ago
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 • u/Suspicious_Town_2048 • 7d ago
please anyone could help to get MATLAB in my laptop
r/matlab • u/Own_Plate_7033 • 7d ago
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 • u/Party_Display_3466 • 9d ago
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!
r/matlab • u/Creative_Sushi • 9d ago
Check out the submissions here and vote up your favorites. This is getting into a serious time-waster. https://www.mathworks.com/matlabcentral/communitycontests/contests/10/entries?sort=votes_count+desc&week=2
I've been bothered by this for a while. Windows 11, MATLAB freshly opened, no files loaded, nothing run. Task Manager, private working set:
MATLAB R2023b - 1,137 MB
+ its embedded Chromium (MATLABWebUI) - 101 MB
Total ~1.24 GB 7 processes
That's the cost of an empty desktop, before a type in single variable. On a 16 GB workstation you won't notice. On the 8 GB laptops a lot of students have, or a teaching lab full of older machines, it's a real chunk of the RAM gone before you type x = 1.
Why does a FOSS alternative like MatLivre easily beats it?
r/matlab • u/BluebirdGold5068 • 11d ago
I have an array that uses a for loop to make the array with an input number of values. This represents a value per month. I need to graph this per year, and I do not know how to turn the months into years.
I thought of doing another for loop but I just can't figure out how to do it without knowing the amount of months
r/matlab • u/Adventurous-Chair590 • 11d ago
I create New a count but the , say:You have reached the maximum number of emails that you may send. Try again later or contact Customer Support., how to make access
r/matlab • u/charizard2400 • 13d ago
r/matlab • u/RoguePoet17 • 13d ago
I’ve got the latter 50% of the Simulink on-ramp to complete by noon tomorrow. The content? Simple. The problem is that when I get to a certain task, one where you have to change the value of a constant to 10*0.25, it cries, and my keyboard stops working for Simulink as a whole. Just ceases to work. If it does work, a key spams indefinitely. Only solution I have is to force restart. Even then, it’s a 50/50 whether it’ll work again. Any solutions?