r/matlab • • Feb 16 '16

Tips Submitting Homework questions? Read this

195 Upvotes

A lot of people ask for help with homework here. This is is fine and good. There are plenty of people here who are willing to help. That being said, a lot of people are asking questions poorly. First, I would like to direct you to the sidebar:

We are here to help, but won't do your homework

We mean it. We will push you in the right direction, help you find an error, etc- but we won't do it for you. Starting today, if you simply ask the homework question without offering any other context, your question will be removed.

You might be saying "I don't even know where to start!" and that's OK. You can still offer something. Maybe you have no clue how to start the program, but you can at least tell us the math you're trying to use. And you must ask a question other than "how to do it." Ask yourself "if I knew how to do 'what?' then I could do this." Then ask that 'what.'

As a follow up, if you post code (and this is very recommended), please do something to make it readable. Either do the code markup in Reddit (leading 4 spaces) or put it in pastebin and link us to there. If your code is completely unformatted, your post will be removed, with a message from a mod on why. Once you fix it, your post will be re-instated.

One final thing: if you are asking a homework question, it must be tagged as 'Homework Help' Granted, sometimes people mis-click or are confused. Mods will re-tag posts which are homework with the tag. However, if you are caught purposefully attempting to trick people with your tags (AKA- saying 'Code Share' or 'Technical Help') your post will be removed and after a warning, you will be banned.

As for the people offering help- if you see someone breaking these rules, the mods as two things from you.

  1. Don't answer their question
  2. Report it

Thank you


r/matlab • • May 07 '23

ModPost If you paste ChatGPT output into posts or comments, please say it's from ChatGPT.

112 Upvotes

Historically we find that posts requesting help tend to receive greater community support when the author has demonstrated some level of personal effort invested in solving the problem. This can be gleaned in a number of ways, including a review of the code you've included in the post. With the advent of ChatGPT this is more difficult because users can simply paste ChatGPT output that has failed them for whatever reason, into subreddit posts, looking for help debugging. If you do this please say so. If you really want to piss off community members, let them find out on their own they've been debugging ChatGPT output without knowing it. And then get banned.

edit: to clarify, it's ok to integrate ChatGPT stuff into posts and comments, just be transparent about it.


r/matlab • • 1h ago

what to learn

2 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 • • 1h ago

what to learn

Thumbnail reddit.com
1 Upvotes

r/matlab • • 1h 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 • • 1d ago

HomeworkQuestion How to learn Block diagrams

1 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 • • 2d ago

TechnicalQuestion Is matlab for ipad pro good?

0 Upvotes

r/matlab • • 3d 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

4 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 • • 3d 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 • • 3d ago

⁄MATLAB !!!⁄engineering student

0 Upvotes

please anyone could help to get MATLAB in my laptop


r/matlab • • 6d ago

MATLAB uses 1.2 GB of RAM with nothing open

Post image
110 Upvotes

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 • • 5d ago

Help with academic use of matlab

2 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!


r/matlab • • 6d ago

Fun/Funny One-Button Game Contest - Week 2 front runners!

Thumbnail
gallery
3 Upvotes

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


r/matlab • • 7d ago

HomeworkQuestion Can't figure out how to index this array

0 Upvotes

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 • • 9d ago

Fun/Funny I unironically love how simple MATLAB's syntax is for working with matrices

Post image
328 Upvotes

r/matlab • • 8d ago

Help

Post image
0 Upvotes

How to access?


r/matlab • • 8d ago

Help

0 Upvotes

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 • • 10d ago

Fun/Funny Thanks, the first live AI coding session for One-Button Game Contest wrapped

Post image
4 Upvotes

r/matlab • • 9d ago

HELP - Simulink onramp messes up my keyboard

0 Upvotes

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?


r/matlab • • 9d ago

MATLAB HELPP ANYONE PLSSS

Thumbnail reddit.com
0 Upvotes

r/matlab • • 11d ago

Running MATLAB natively on Raspberry Pi and DGX Spark: MATLAB on Linux ARM is now in open beta

30 Upvotes

Hi everyone

Here's a screenshot of MATLAB and Simulink running natively on my Raspberry Pi 5 courtesy of the new MATLAB for Linux ARM beta that we released this week

MATLAB for Linux ARM running on a Raspberry Pi

In my latest article, I discuss this new beta; how you can install it directly or in Docker / Apptainer containers and show some performance issues on DGX Spark and Raspberry Pi that I've reported to development.

Running MATLAB natively on Raspberry Pi and DGX Spark: MATLAB on Linux ARM is now in open beta | The MATLAB Blog

I know that many of you have been waiting for this for a long time so please head over, take a look and let us know how things look for your workflow.

Cheers,

Mike


r/matlab • • 11d ago

TechnicalQuestion Can I embed a working Simulink model in my slides. Is it possible

3 Upvotes

I have my undergrad project presentation tom... Is there any way to embed Simulink in slides so that I can show the working & explain blocks ?

Modelled a hydraulic actuation system, was wandering If I can just embed in slides & avoid reopening a second laptop


r/matlab • • 12d ago

Fun/Funny One-Button Game Contest - one week in

Thumbnail
gallery
19 Upvotes

So far, the Lunar Lander - Tap to Burn is the top entry. KOI is the close second, Pump-Send: A Mountain Bike Adventure in the 3rd place.

Play the games and vote for your favorites! https://www.mathworks.com/matlabcentral/communitycontests/contests/10/entries?week=all