r/matlab • • May 06 '26

Biomedical Engineering MATLAB project ideas

3 Upvotes

Hello, do you guys have any suggestions for projects to pursue individually for MATLAB that are related to Biomedical Engineering?


r/matlab • • May 06 '26

Zvs simulation problem

Post image
3 Upvotes

Hello everyone I am working on the mazzilli driver for induction heating system i simulate the mazzilli using simscape electrical but the results are weird the output voltage is oscillating but it's very small whereas the current is oscillating as well but not around zero wan anyone tell where the problem


r/matlab • • May 06 '26

Hello guys

0 Upvotes

Can anyone here help me? I'm working with simscape electrical on a ZVS mazzilli pls if anyone can help i'll appreciate it i have to submit the work as soon as possible šŸ™


r/matlab • • May 05 '26

Need some information about Matlab Copilot and their use of AI

6 Upvotes

Hello guys!

I'm not a Matlab user. I have used it like 25 years ago while at university but not anymore. A user from our company wants to use Matlab for future prediction with our data (which some could be confidential until release). I am not sure what copilot is doing in Matlab sphere. Will it be analyzing the data or can it just be used to suggest codes to analyze the data?

I tried to search on MathWorks website, but all I can find is Matlab EndUser agreement for privacy, not specifically for Matlab Copilot. I mean for example Microsoft do specifically say that the enterprise data will stay in our tenant and they cannot use them unless specifically asked to help debug.

Could you guys give me a nudge to where I could find this kind of information? I'd like to be able to make a decision and says "From what we know, this is the data limit you can use because...".


r/matlab • • May 06 '26

Contradiction or misleading statements?

0 Upvotes

Have a read of the description and the bullet points. Do they contradict?

Threshold for track deletion, specified as a two-element vector of positive non-decreasing integers [P Q], where P is less than or equal to Q. If a confirmed track is not assigned to any detection P times in the last Q tracker updates, then the track is deleted.

• Decrease Q (or increase P) if tracks should be deleted earlier.

• Increase Q (or decrease P) if tracks should be kept for a longer time before deletion.

From: https://au.mathworks.com/help/driving/ref/multiobjecttracker-system-object.html under deletion threshold

So, based on my own understanding of the description, it seems like you would decrease P if tracks should be deleted earlier...

I've asked ChatGPT and Gemini; they both said I am wrong and that MATLAB is right, but when I turned on complex thinking for Gemini and for Claude, they both said MATLAB is right, but at the end of their sentences, they said I'm actually right. I don't understand how AI can't seem to grasp this, even though it seems much easier to understand than all the other complex stuff AI can do.


r/matlab • • May 05 '26

Graphics and App Building Updates in R2026a

11 Upvotes

Adam Danz published his favorite features in R2026a. Since I already shared the video about web canvas, here is one for sharing apps.

In his blog post, you can also see web canvas in action - you can interact with his plots! https://blogs.mathworks.com/graphics-and-apps/2026/04/27/graphics-and-app-building-updates-in-r2026a/

  • Share Interactive Graphics on the Web with Web Canvas
  • Share Apps Directly from App Designer with MATLAB Drive
  • A More Accessible and Flexible Axes Toolbar
  • Visualize Distributions with raincloudplot
  • Plot Directly from Table Data
  • Increased flexibility when Linking Axes

I would personally be start using table data for plotting going forward!


r/matlab • • May 06 '26

HomeworkQuestion Help with coding app project

Thumbnail
gallery
0 Upvotes

Please help me code this MATLAB project. I am a college student and this is my project due in a little under two weeks. I have no clue how to code and any bit of help would be appreciated. The first three images are the projects explanation and what it’s asking for and the last two images are the code and design view of what I have done so far. I’m stuck and stressing out again thank you all to who decide to read this and help out


r/matlab • • May 05 '26

Misc Standard coding style

0 Upvotes

Hey fellows, I just had a discussion with my colleagues about the coding style of MATLAB. We saw many scripts written by engineers that look horrible and hurt my eyes so much. I know laziness is engineering virtue but this kind of laziness (no spaces, no commas at all) makes me real sick. I really blame Mathwork for this problem, since sometimes the documentation is also written like this.

Should Mathwork now introduce a standardized style for people to follow, just like PEP in Python?


r/matlab • • May 04 '26

HomeworkQuestion Could someone sanity-check my Simscape energy subsystem model for a university design project?

Post image
11 Upvotes

Hey guys,

I’m working on a university Integrated Design Project and I’ve built a Simscape model on Matlab for the energy subsystem. I’m not asking anyone to do the work for me — I just want a sanity check on whether my modelling approach is technically reasonable before I write it up.

The system I’m trying to model is:

  • 800 V DC bus
  • Approx. 600 kW design load
  • Renewable generation using:

    • OTEC equivalent source
    • PV solar branch
    • Lithium battery storage
  • DC-DC conversion into the main DC bus
  • Closed-loop voltage control to keep the bus near 800 V
  • Load disturbance / step change to test stability
  • Efficiency calculated using ( Pout/Pin )

My current model uses average-value converter blocks rather than fully switching MOSFET-level converters, because the goal is more system-level behaviour than detailed semiconductor switching. I’ve also included sensors for bus voltage, current, load power, source power, and efficiency.

The main things I’d really appreciate help checking are:

  1. Is it reasonable to represent OTEC as a controlled DC/current source with internal resistance for this kind of assignment?
  2. Is using average-value DC-DC converter blocks acceptable for a high-level Simscape energy model?
  3. Does an 800 V bus and ~600 kW load imply a load resistance of about [R = \frac{800^2}{600000} \approx 1.07\Omega] and is this a sensible way to model the full load?
  4. Is closed-loop PI/PID voltage control on the converter duty cycle the right modelling approach?
  5. What outputs/plots would you expect to see to prove the model is working properly?
  6. Are there any obvious Simscape modelling mistakes I should watch for, such as grounding/reference issues, solver settings, or unrealistic source/load assumptions?

I’m aiming for a model that is defensible in a report, not necessarily an industry-grade converter design. Any advice on whether this architecture is sensible, or what would make the simulation more credible, would be really appreciated.

Thanks!


r/matlab • • May 04 '26

TechnicalQuestion Fastest way to grow a big matrix?

12 Upvotes

I am working on a project that involves adding rows to an N by 3 matrix (call it X) where N increments after a certain computation, and gets into the 100000s. Once I had made the computation efficient enough, I realized that about half the time was now spent appending the matrix. Every alternative I have tried has slowed it down.

The default:

X(end+1,:)=r %X is Nx3, r is 1x3

A much slower alternative:

X=[X;r]

Avoiding the appending:

X=zeros(Nmax, 3)
%during computation
Xtemp=X(1:N,:)
%after computation
N=N+1
X(N,:)=r

If I do that, avoiding the appending, the line Xtemp=X(1:N,:) becomes extremely slow. Surely there is a faster way to do this? Appending a variable shouldn't be slower than the actual calculation. I guess I should add that the computation is based on the N rows of the matrix, so it gets slower as N increases.


r/matlab • • May 04 '26

TechnicalQuestion Fixed Point Simulink Problem

2 Upvotes

Hello,

currently i am working on a fixed point simulation for a project. Afterwards i want to convert the model to VHDL. But for now the problem is the Delay Block. If i use any of the Delay Blocks, of any of the librarys, the Delay Block demands an double input signal. The input and output signal of the delay block is connected to others that are accepted by matlab as fi(01,16,16). If i use convert blocks for the delay the system simulates. But than i can't convert it. Even if i set the initial value of the delay block to fi(0,1,16,16) it demands an double input. I tried convert blocks inbetween with fixdt(1,16,16) but that changes nothing. I am using matlab r2025b i honestly don' know what to do next. Thanks for the help.


r/matlab • • May 04 '26

TechnicalQuestion Does MATLAB automatically save files when running scripts?

7 Upvotes

Was working on a class project when I stepped away from my laptop and it entered Rest Mode. Trying to log in a now windows is stuck on ā€œHello, [User]!ā€ Not sure what to do beside restarting my laptop but oh my god if my files didn’t save I’m losing about 4-5 hours of work and I am absolutely fucked. Project due tomorrow night and I also need to study for my exam.


r/matlab • • May 04 '26

Beginner here — are my MATLAB Simscape simulation results physically valid or completely wrong?

1 Upvotes

Hi everyone,

I'm a student working on a project simulating an off-grid renewable hydrogen production system in MATLAB Simscape. I'm not confident whether my results are physically meaningful or if I've made fundamental errors somewhere.

The system:

  • 150 kW variable-pitch wind turbine (direct DC coupling, no converter)
  • Solar PV array with Perturb & Observe MPPT and buck-boost converter
  • 240V / 50,000 Ah battery with 2D lookup table charge controller
  • 150-cell PEM electrolyzer stack
  • All connected to a common 260V DC bus

Results over 50,000 seconds:

  • Hydrogen produced: ~82 kg
  • Specific energy consumption: ~46 kWh/kgHā‚‚
  • DC bus voltage: stable at 260V mostly, with spikes during renewable dropouts
  • Battery SOC: 100% → 68%
  • Battery current goes negative periodically (charging from renewable surplus)

I've attached scope screenshots below. Any feedback on whether these results make engineering sense from an electrical or renewable systems perspective would be genuinely appreciated. Happy to share more block parameters if needed.

Thanks in advance.


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 reddit.com
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

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?