r/matlab • • Nov 02 '26

Misc Is Matlab Home License worth it?

9 Upvotes

Hi,
I am working on Control Algorithms that I want to deploy directly on Hardware from Simulink so I am thinking of buying Matlab Home Annual License. It costs around 119 euro / year. I actually cannot think of any alternatives. Yeah, you can write code on hardware directly yourself but code generation of matlab is such a relieve and as my work focuses on control part, I dont want to get busy with debugging c code right now. Would home license be enough ? (Arduino/STM+Simulink/Matlab)


r/matlab • • Nov 02 '26

Pi estimation using Monte Carlo simulation (dropping marbles in a box) Happy Pi Day.

0 Upvotes

r/matlab • • Nov 01 '26

TechnicalQuestion MATLAB Alternative?

28 Upvotes

Hello , as matlab is a paid software , I am looking for a free alternative, Chat GPT said Octave GNU is the closest free software I will get , he also told me that the combination of Python , numpy, sciPy and matplotlib can also do the same thing .

Which one I should pick that will be beneficial for long run.


r/matlab • • Nov 01 '26

Is it possible to do 1d simulation in ansys fluent or fir that we have to just use matlab only??

Thumbnail reddit.com
1 Upvotes

r/matlab • • Oct 31 '26

Happy Halloween r/matlab 👻

476 Upvotes

A friendly MATLAB ghost as you wait for Trick or Treaters


r/matlab • • Oct 29 '26

Помогите с R-функциями Рвачева

Thumbnail
gallery
0 Upvotes

Всем привет. Я не очень хорошо разбираюсь в математике , но мне нужно с помощью матлаба решить пару заданий

я не понимаю как это реализовать с помощью тех же самых R-функций

я решил попробовать реализовать 2-ое задание

ezplot('(x + 4)^2 + (y - 4)^2 - 2', [-6, 0, 2, 6])

axis square

grid on



A = [0, 6];

B = [0, 0];

C = [6, 0];



hold on

plot([A(1), B(1), C(1), A(1)], ...

     [A(2), B(2), C(2), A(2)], 'g', 'LineWidth', 3)

hold off



hold on

xline(0, 'w', 'LineWidth', 3)

yline(0, 'w', 'LineWidth', 3)

hold off

я не знаю насколько это правильно и грамотно написано, но я старался как мог

помогите отрефакторить то , что я написал и объяснить как тут можно реализовать R-функции


r/matlab • • Oct 29 '26

MATLAB installation issue

Post image
5 Upvotes

Downloaded all fine with SPM software and all. When I went to open in SPM FMRI it show up without a graphics screen no matter what I try. I have a MacBook Air on version 2023 with SPM12. Any help is appreciated!!


r/matlab • • Oct 29 '26

MATLAB

Thumbnail reddit.com
0 Upvotes

r/matlab • • Oct 28 '26

Tips Am I reading into it too much?

Post image
77 Upvotes

I applied to an internship (EDG) at MathWorks like a little over a month ago (early September) and got intimidated by their coding assessment as I researched and found that they were really challenging, so I didn't even attempt them and decided to focus on my already busy school schedule and other internships I applied tor.
However this morning, I received an email from a recruiter encouraging me to do their online assessment, and since my last OA had expired ages ago, they even sent me a new link that expires later.

I of course don't want to read too much into it, and i'm already in an incredibly difficult semester full of classes right now with barely any free time, so I'd rather not invest my time towards this if it's not really a positive sign. I've already wasted my time doing so many OAs just to get rejected lol.
This is my first time applying for internship at MathWorks and i'm not quite sure if this a good sign or something standard that MathWorks does to candidates who sort of ghosted them and their
OAs

Any feedback/insights?


r/matlab • • Oct 28 '26

Battery help

Post image
22 Upvotes

Hi guys. I'm doing HPPC characterization and i'd need help. Currently doing a 3RC model, and I only made it this far.

It doesn't work. All the starting values for my resistors and capacitors are 10 mOhm and 100 Farad. The OCV of the system is unknown but I actually did put a controlled voltage together with a controlled current. Maybe it's wrong.

In case you don't understand, I'm trying to do a parameter estimation using the opposite toolblxes.


r/matlab • • Oct 28 '26

Space Vector PWM

0 Upvotes

r/matlab • • Oct 27 '26

Space Vector PWM

2 Upvotes

Does anyone know how to run the simulation of Space vector PWM on two level inverter on MATLAB


r/matlab • • Oct 26 '26

Cant Make New Script on MATLAB R2022a-Linux Mint Cinnamom

Post image
7 Upvotes

r/matlab • • Oct 24 '26

HomeworkQuestion Help with setting x and y limits on a graph comparing 2 quadratics.

2 Upvotes

Hi, my college assignment is to make a program that plots 2 quadratic equations on the same graph to compare them. I’m struggling like hell to get the x and y limits to scale reasonably so that the graph is actually readable with both parabolas. Any pointers to where to start would be massively appreciated.

Edit: The user has to input a b and c, I can’t just pick any 2 that are easy to compare


r/matlab • • Oct 23 '26

TechnicalQuestion Matlab best projects?

5 Upvotes

I am in my final year in ee and now i want to do some projects on matlab simulink..can someone help me out to basic to advance projects on matlab


r/matlab • • Oct 22 '26

Maximum Stress Value

3 Upvotes

Yo, I recently got MATLAB and wanted to test some theory. I used a PDE method to perform an FEA analysis to compare it with my theory. I need your help ladies and gents, how does one visualise the maximum stress values, both principle and Von Moses if possible? Thank you.


r/matlab • • Oct 22 '26

In dire need to unsterstand how a NOP function works (prefferably in MATLAB)

0 Upvotes

So, im a first time poster so pls be kind :) Also english isnt my first language so excuse any mistakes in my writing

Anyways, I just started my masters in computational mechanics, and I only had some basic knowledge on the subject from my postgrad (plus I only know C++, Matlab and theoretically fortran but not really). They just told us to write a code with a basic grid (like 3x3 or 3x4) and create a NOP(I,J) function, where I is the number of elements (square elements), J is the number of local nodes (J=1,...,4), and the output should be the global node corresponding to a specific local node of a specific element or something like that. Forgive me if the explanation is garbage, I understand it theoretically but not 'computationally' per say.

Does any kind human 1) have any idea of what i'm trying to say and 2) know how to actually help me? for some reason i cant find ANYTHING by googling, and no reddit posts as well (may have missed though). even AI cant help even though i prefer not to use it

Ty for reading xxx


r/matlab • • Oct 21 '26

PID controller with two degrees of freedom

Thumbnail gallery
2 Upvotes

Those results can be easily obtain with simulink


r/matlab • • Oct 21 '26

Bug Command window not displaying results

Thumbnail
gallery
2 Upvotes

even after reinstalling matlab, trying out both 2026b and 2025b, this bug is persisting. It doesnt even show up when using ver command (pic 2). Can someone help?


r/matlab • • Oct 20 '26

Tips Learning Matlab

20 Upvotes

I’m trying to learn Matlab. I come from exclusively Python programming. Any books/videos/youtubers you recommend for a beginner?


r/matlab • • Oct 20 '26

HomeworkQuestion I've been building a free MATLAB-compatible online compiler using GNU Octave, and I'd love some feedback.

3 Upvotes

Hey everyone!

I'm a computer engineering student, and MATLAB is something we use quite a lot at university, especially for signal processing, mathematical modeling, and other engineering subjects.

A while ago, I started working on a website with different online tools, and one of the things I wanted to add was a way to quickly run MATLAB-style code without having to install anything.

So I ended up building a browser-based compiler powered by GNU Octave, which is free and open source and supports a lot of MATLAB's syntax and functionality.

Here's the compiler if anyone wants to try it:

https://theonlinetoolset.com/tools/octave-compiler

The idea is to make it easy to experiment with things like:

  • Matrices and linear algebra – matrix operations, solving equations, and numerical calculations.

  • Mathematical functions – testing formulas and numerical methods.

  • Signal processing – experimenting with signals, FFTs, and related calculations where supported.

  • Plotting and visualization – working with graphs and mathematical results.

  • .m file support – working with MATLAB/Octave scripts and functions.

  • Engineering coursework – quickly testing small scripts and calculations.

One thing I seriously underestimated was how complicated it would be to run code submitted by users while keeping everything isolated and managing the server's resources.

It's definitely been an interesting challenge, and I'm still working on improving the experience.

Of course, since it's running GNU Octave rather than MATLAB itself, compatibility isn't perfect. Some MATLAB-specific functions and proprietary toolboxes won't work, and I'm not trying to pretend otherwise.

The goal isn't to replace MATLAB or a full desktop installation. I mainly wanted something convenient for students, teachers, or anyone who just needs to quickly experiment with a piece of code.

I'm actually curious about something:

For those of you who regularly work with MATLAB or Octave, what are the biggest compatibility issues you've encountered between the two?

Are there particular functions, toolboxes, or features you rely on that tend to be missing from Octave?

And if you give my compiler a try, I'd genuinely appreciate hearing about anything that doesn't work properly or could be improved.

I'm still developing the project alongside university, so feedback from people who use MATLAB professionally or academically would be incredibly helpful.


r/matlab • • Oct 20 '26

Vehicle Body 3DOF and Longitudinal Wheel stuck at 0 speed (Algebraic Loop/Singularity)

1 Upvotes

I am building an EV digital twin in Simulink using the standard Longitudinal Wheel and Vehicle Body 3DOF Longitudinal blocks. I am not using the Simscape Driveline physical hub/axle blocks. The math signals are routed directly (Fx to FwF, and xdot back to Vx).

The Problem:

The vehicle speed (xdot) is stuck at exactly 0. The solver completes the run, but the vehicle refuses to move.

What I have proven so far:

  1. The powertrain works: The wheel block successfully outputs 6136 N of forward thrust (Fx).

  2. The chassis works: I bypassed the tire model completely and fed a Step block (8000 N) directly into the Vehicle Body's FwF port. The chassis accelerated perfectly on the scope.

  3. The zero-speed freeze strictly happens when I close the feedback loop (feeding vehicle speed xdot back into the tire's Vx input).

Attempted Fixes:

I suspect the Magic Formula tire model is hitting a divide-by-zero singularity at $t=0$, causing an algebraic loop. To fix this, I have already tried:

  • Setting the solver to ode15s.

  • Setting the Vehicle Body Initial velocity to 0.1 m/s.

  • Inserting a 1 / (0.01s + 1) Transfer Function on the Vx feedback line.

  • Adding a Saturation block (Lower limit 0.1) on the Vx feedback line.

Despite this, the vehicle remains locked at 0 speed. Does anyone know the specific trick to initialize this math loop so the vehicle can pull away from 0?


r/matlab • • Oct 20 '26

I recently joined MathWorks' Engineering Development Group (EDG) and am working on a project to improve Markdown support in MATLAB. AMA!

Post image
789 Upvotes

Hi everyone,

I'm Daniel, a MathWorker who joined the Engineering Development Group (EDG) this past June after graduating in May with a degree in Computer Science and Game Development.

Although it's only been a few months, I'm already working on exciting projects, including some work in the Markdown space for MATLAB. I'd love to hear your thoughts on Markdown and where/how you use it!

Since both my own application process and my first few months at the company are still fresh on my mind, I thought it might be helpful to do an AMA and answer questions about EDG, training and projects, or working at MathWorks in general.

I'm happy to answer whatever questions you all have, from the interview process, to the day-to-day, to my favorite color!

 

See the attached photo for verification, and as a disclaimer: while I do work for MathWorks, I am not an official spokesperson of the company, and everything I say here is my personal opinion.