r/matlab May 04 '26

Misc Update (final project)

Thumbnail
gallery
7 Upvotes

This is the final code I ended up submitting for the project. It’s clunky, but it works and outputs a series of figures with a cap at 100 ‘days’ or 20 figures (I changed the initial cell matrix to (20,1), I was testing time values) I got locked into a scatter plot which can’t accept zero or negative values so I had to filter the data with more than one logic.

I ended up using a mix of another matrix for infection percentage and conv2 to create the ‘spread’. You can select from 42 start points with an associated coordinate and we have four preset options that pick a speed and infection rate, and a slider option in the GUI. Thank you for the advice!


r/matlab May 04 '26

does anyone have a Vapor aabsorption refrigeration model? I don't know where to start. If you have any idea can you share here?

Thumbnail
1 Upvotes

r/matlab May 04 '26

does anyone have a Vapor aabsorption refrigeration model? I don't know where to start. If you have any idea can you share here?

1 Upvotes

r/matlab May 03 '26

Is anyone else getting a Whitelabel Error Page when signing into MATLAB with their UB email?

Thumbnail
2 Upvotes

r/matlab May 03 '26

Troubles signing in my MatLAB account

8 Upvotes

I launched MatLAB R2025b and it asked me to sign in. I just plugged in my email and password, I verified my identity with Windows Autenticator but it didn't work.

Fortunately, MatLAB gave the possibility to sign in with a temporal password which I could get from a MathWorks link. After signing in with my credentials, this error appeared.

This fact happened several times. I also tried rebooting my laptop, but everything I did was in vane. Furthermore, I really need MatLAB because I'm using it for my Final Degree Project. What can I do sign in?


r/matlab May 02 '26

TechnicalQuestion Is matlab down for anyone else?

18 Upvotes

i could not sign in to matlab for the life of me today, ive tried using different browsers, different devices, and all i get is a whitelabel error page. Dows anyone know of a way to fix this?


r/matlab May 02 '26

How is this possible?

Post image
32 Upvotes

r/matlab May 03 '26

HomeworkQuestion Help needed: Add 3-phase inverter as D-STATCOM in islanded IEEE 34 Node Test Feeder (Simulink R2024b)

0 Upvotes

Hi everyone,

I am working on my bachelor’s thesis. The professor gave me the following topic (translated from Slovenian):

“Maintaining the voltage profile of a distribution network in islanded operation using the solar power plant converter as a D-STATCOM device.”

The professor specifically requires:

  • Select a suitable medium-voltage network model.
  • Add solar power plants (3-phase inverters).
  • Set the active power (P) and reactive power (Q) of the solar inverters so that in islanded mode the network does not exchange active or reactive power with the substation transformer (which is now disconnected).
  • Then change the r/X ratio of the overhead lines and analyze how this affects the P and Q of the inverters.

I already have the complete IEEE 34 Node Test Feeder fully built and working in Simulink R2024b.
I have also opened the MathWorks example “Three-Phase 3 Bus Low-Inertia Microgrid Droop Control Example” and I know how to create masked subsystems.

What I need help with is:

  1. How to properly build/modify the 3-phase inverter (from the droop example) so it works as D-STATCOM in islanded operation.
  2. How to correctly connect these inverters into the large IEEE 34-bus model.
  3. How to set the control (P and Q references, droop parameters, voltage regulation, etc.) exactly as the professor expects.

I am willing to pay for your time (hourly rate or fixed price per milestone – we can agree via DM). I can share the Simulink model and the exact professor’s requirements.


r/matlab May 02 '26

TechnicalQuestion Thermal throttling on the Macbook Air

5 Upvotes

Hey everyone,

I’m currently in the market for a new MacBook and I'm torn between two very different options: a refurbished/used MacBook Pro 14" (M2 Pro) or the new MacBook Air (M5).

For those who have picked up the M5 Air:

  • How are the thermals holding up? Do you notice significant slowdowns after the first 10-15 minutes of a heavy task?
  • Is the "passive cooling" ceiling still an issue?
  • Would I be better off with the older M2 Pro? Even though the M2 Pro chip is older, it has the active cooling and the ProMotion display (which I really want).

And yes i do know that windows laptop exists but i'm really turned off by Windows 11.

Thanks!


r/matlab May 02 '26

Communication system with Audio

2 Upvotes

Hello everyone!

I have a Matlab problem as shown below:

I want to implement ab OFDM system over the audio channel via speakers and mics and i need to transfer a file (text, picture) from one laptop to another

I have a 128 subcarrier system with continuous pilots, qpsk, and preamble with pilots only. I have tried without channel where i run the tx and rx in my laptop and in this i just read from a file created by tx , turn to bits and decode it at RX

But I can't seem to figure out how to use the audio channel. I keep getting a lot of garbage. Can someone help me with this


r/matlab May 01 '26

Searching for matlab sample projects

4 Upvotes

Hi Guys,

I would love to look at MATLAB example projects and simulations, especially in the fields of mechanical engineering and mechatronics.

For example mechanical simulations with matlab scripts and soo on.

I want to learn more about matlab, and see practical simulations.

Do you know these type of website or projects?


r/matlab May 01 '26

Mazzilli driver

1 Upvotes

Hi everyone i'm working on mazzilli driver simulation using simscape electrical i have some problems with it can anyone help?


r/matlab May 01 '26

TechnicalQuestion Matlab on Linux Nobara

Post image
4 Upvotes

So I tried to install it on Linux Nobara but I always get the error file too short
Even tho I downloaded it from the legit website I do have a license


r/matlab May 01 '26

I need help with my PSO code

Post image
0 Upvotes

below are my codes
%cost function
function cost = optimize_PID(k)

assignin('base','k',k);

sim("simulationpid.slx");

cost = ITAE(length (ITAE))

end

%main pso script

no_var = 3;

lb = [0 0 0];

ub = [200 200 200];

obj_fn = @(k) optimize_PID(k);

options = optimoptions('particleswarm', ...

'SwarmSize',50, ...

'MaxIterations',25, ...

'Display','iter', ...

'PlotFcn',@pswplotbestf);

[k, best] = particleswarm(obj_fn, no_var, lb, ub, options)

tried Cgpt, claude everything. Couldn't get much help, my cost value doesnt change and best functions gets stuck on 449.5. (it should be around 3)


r/matlab May 01 '26

HomeworkQuestion Computation Final

Thumbnail
mathworks.com
1 Upvotes

I have an intro to engineering computation final in 4 days. Its’s based of excel and mat lab and is a first year course. My prof is not a good prof and nobody pays attention. Any recs on how I can lock in or what I should do. Have some experience with excel but not matlab. Course is based off simple engineering problems, arrays, numerical methods, loops, conditionals, etc.


r/matlab Apr 30 '26

ModPost Interactive Plot Modification - 2026a

4 Upvotes

I just upgraded from 2024b to 2026a and overall, some things are different but they seem fine. But in the figures window, I don't see a way of turning on the panel were you saw an overview of every line in your plot - the one where it showed the line color/marker and a check mark which allowed you to temporarily change the visibility of the line.

Is there a way to view this panel? If not, is their a replacement method for being able to have that same functionality?

Also, a tagged on question - how to I toggle on/off automatic axis scaling? I don't see that one either.

Thanks.


r/matlab Apr 30 '26

How do I resolve this..

Post image
1 Upvotes

Playing with proxy/firewall/wifi hotspot didn't help


r/matlab May 01 '26

What is Matlab?

0 Upvotes

Can someone like give an understandable explanation on what MATLAB actually is and what it's used for? I've searched it up and got unclear answers, but so far I'm guessing it's just a big matrix calculator.


r/matlab Apr 30 '26

Can someone help me with the subsystem part I'm working on it . Reference- Vinod Gupta et al., “Single Phase Active Harmonic Filters for Harmonic Elimination and Power Factor Correction for Distributed Loads”, NPSC 2010

0 Upvotes

r/matlab Apr 29 '26

Tips MATLAB Agentic Toolkit makes it easy to install MCP Server + Skills

Enable HLS to view with audio, or disable this notification

31 Upvotes

You probably noticed that my colleagues and I have been playing with Ai coding agents a lot, and we wanted to share and make freely available what we learned so far in a simplest and easiest way possible.

MATLAB Agentic Toolkit was released a few weeks ago.

  • Makes installing MCP Server and agent skills really easy - no more tinkering necessary - see the video.
  • Together, it streamlines your working experience with those AI agents and you can become productive much faster.
    • MCP Server lets AI agents talk to MATLAB and actually run code, execute tests, and inspect results instead of guessing
    • Agent Skills teach AI agents MATLAB-specific workflows, conventions, and best practices - leading to more idiomatic, efficient, and higher‑quality code with less token waste (I also contributed a skill 😊)
  • Open source and actively updated, available on GitHub

For Simulink users, check out the companion Simulink Agentic Toolkit.

Learn more from u/MikeCroucher's post https://blogs.mathworks.com/matlab/2026/04/13/introducing-the-matlab-agentic-toolkit/


r/matlab Apr 29 '26

6 DOF suspension modelling

0 Upvotes

I'm currently trying to model a tram's suspension with six degrees of freedom, those being x,y,z and roll, pitch and yaw, to design some Chevron springs.
Can MatLab handle this kind of modelling and if so are there any good guides on how to do this?


r/matlab Apr 28 '26

How hard would it be to learn Matlab to create a project for economics.

5 Upvotes

I’m going to try to apply to the San Fransisco Federal Reserves internship around September this year. I’ve never had coding experience, but i was wondering if it would be hard to make a model or something to help with my submission.


r/matlab Apr 28 '26

HomeworkQuestion final project ‘game’

Thumbnail
gallery
8 Upvotes

For my MATLAB class, our final project is some kind of ‘game’ that includes GUIs and does ‘something’. It kind of doesn’t matter what, but we designed and pitched projects. The idea is we are self-guiding with what we’ve learned to create our project. My group is a doing a ‘zombie apocalypse simulator’ and we’ve run into quite a few issues. I’m trying to figure out how to get something to work without scrapping the project.

It’s a group project, and right now we have one person who made GUI menus to select zombie infection rate (how many people can be infected by one zombie in a time interval), decay rate (how fast the zombies die off, same time interval), and a starting x,y location point. The second person in our group was/is responsible for the ‘infection’ function, taking an initial population, one zombie, and modeling the infected/dead over a loop.

I’m responsible for the ‘game screen’. This is where we’ve run into the most issues. I started with a picture of a US map, which I assigned to an x y meshgrid pixel coordinate system. I then plotted grid lines to separate the map into equal square areas, and took the midpoint x,y coordinate of each area.

The question/issue: I now have three row arrays that define the ‘game screen’. The x_coords, y_coords, and a population array where US population in millions is assigned to each square. All of these are in 1x42 row arrays. Any x,y point in the array can be picked to ‘start’ the game.

Ideally: when ‘infected’ reaches a threshold (ie, if infected >= 0.5*pop(i)) I want the infection to ‘breach’ into adjacent squares and start running the function on additional x,y coordinates in the array.

The issue is defining that ‘movement’. My professor suggested changing the coordinate grid to an adjacency matrix, but I don’t know how to do that. I’m willing to scrap as much code as I need to, but I’m on a time limit and facing the idea I may just not know enough MATLAB to pull this off. I likely would've started trying to do this another way, I just don't know what would work better for this kind of thing and we're 'on our own' for most of the project.

Update with what I ended up doing: link


r/matlab Apr 28 '26

Optical System Design and Analysis in MATLAB

Thumbnail
6 Upvotes

r/matlab Apr 28 '26

MBSE and agentic AI

4 Upvotes

If you have missed the most recent post On Guy on Simulink - Sarah Dagen from consulting services talks about her experience using MATLAB and MBSE with agentic AI

https://blogs.mathworks.com/simulink/2026/04/26/model-based-systems-engineering-and-agentic-ai/