Modeling a Thrust Vectored Rocket In Simulink

Vote for this video by social sharing!
Thanks to Mathworks for sponsoring this video! The Aerospace Blockset model, and Simscape model, can be found for free here:

Tags: BPS

  1. Bee Sod

    love the old tape from previous use! great video Joe! You make building rockets, fun!


    in 1-2 years i can see you doing a liquid rocket. if you got good control algorithms figured out you could start a plan right now to be able to finace said liquid rocket.

  3. Erbse M

    How could you calculate the sideways force when using a Fin based Stabilization System instead of Thrust Vectoring ?

  4. Artendo

    More engineering please! Love such geeky but we’ll explained vids

  5. Roel Baardman

    Please make the closed loop video! This is where it gets really interesting!

  6. MCTheTrash

    I’m totally down for more simulation stuff.

  7. Lawliet

    I loved this video! Amazing content please continue collaborating with MathWorks.

  8. Malcolm Crabbe

    Lost me after taking the initial measurements…. Man you should apply to Elon for a job…no need for a CV, just point him to this video !

  9. -Nedos _

    bought me simulink two weeks ago :D

  10. Matt McCormick

    Your handwriting… I love it, I really do.

  11. BaronZ

    I think it was about one year ago that I said you absolutely want to do this to improve on your control algorythm…

  12. Anish Thakkar

    yes i like to see new videos like this how do you overcome your procastination

  13. John Stockholm

    Yes please, MathWorks please sponsor this guy! He does an amazing job

  14. Kimball Goss

    Awesome video! I for one would love to see you go through the process of creating a simple rocket PID controller in this software. Count me in for that video!

  15. ashutosh dhaka

    Great video man !!!!
    Very informative for students getting into this field, really shows how self-learning can help you break down complex problems.

  16. RealVideos RV

    I am an systems & control engineering student. I would be really excited if you would go in to control stuff a bit deeper. But i guess it doesnt really fit the “fun’ -nes” of your channel unfortunately.. so what do you think? Make a new channel for rocket control lectures? But on a serious note, it would also be cool to live stream a controller design process for a new rocket. Or update after a previous launch failed and you wanna improve the controller after analysing the data. I think a lot of us could also help, give suggestions, but above all learn a lot !

  17. johny modem

    Always great vid’s. Thank you. Keep up the good work … Ad Astra :)

  18. aspzx

    I think we finally found something that Joe *isn’t* good at: handwriting!

  19. Baha Alshwaiki

    As a mechanical engineering student, what you covered here is very informative and helpful. More of these videos is definitely a good idea!

  20. Joshua Browne

    I would love to see you close the loop. Amazing and fascinating video. Love your work

  21. chock man

    This is great, I would love more MATLAB/simulation content!

  22. Igor Petrenko

    Would love to see how you create a PID controller for a model rocket in Simulink. Doing a systems and control module as of now so it helps watching these vids at 1 am :)

  23. Francis Stapp

    bro you get to use something someone else built i programmed all this stuff in python what am i doing with my life

  24. Noah W

    I’d absolutly love a video on closed loop, that stuff is fun

  25. Ton

    This must be why i suck at Kerbal
    can’t understand a bloody word

  26. Spencer Coleman

    Yes, would like to see PID loops on this :)

  27. Dracar noir

    Its not rocket science, everyone knows that. Thanks for making me feel stupid, fantastic explaining. Ill stick to rc planes. Keep up the great work.

  28. Manas Tiwari

    Highly inspiring!! Keep on the good work and yup i would very well like to see the PID video too!

  29. Consulting Joe

    I did building automation, programming hvac PIDs for custom solutions downtown Chicago.
    *A PID video would be cool.* It’s been done but I would like your demo and explanation I’m sure.🤓

  30. Phughy

    Yes! I want the closed loop explanation! Impressive work. Makes me want to go back to control system design

  31. Gloppy

    Hey Joe, I’m curious how come you haven’t created a small arduino with a distance sensor to make better measurements of the oscillations? Would that help you get better precision or is it a diminishing return?

  32. Will S

    Would love to see a video showing this with closing the loop! Would be a lot more complicated but it would be very interesting.

  33. Meridian x

    This came up on my recommended feed. I have no idea why. I do not even understand the title 😄😄😄 And, yes, my first language is English!

  34. Bilal Khan

    Just a couple weeks before i modeled the flight simulation by myself now i can verify my design 😃

  35. Clouvyx

    I fired my first model rocket thanks to you for all the inspiration thank you

  36. Alti-tude

    This… this is what I’ve been waiting for! Thank you :)

  37. Tim

    Thanks a lot for this brief introduction. While I so far have only used transfer functions in Mechatronics I, it´s great to see how the more advanced blocks can be used. Looking forward to Mechatronics II. I would be very interested in a video covering Simscape and other simulation tools you might use.

  38. FLABrowncoat

    Dude, you have a talent for educating. I would pay good money if you did one of those online “Masterclass” courses.

  39. Maxjoker98

    String Len? Be careful if you’re handling binary data.

  40. mohad

    Yes great stuff ! Would love to see with pid controller.
    Cheers from France !

  41. Atif Mohammed

    All Rocket Motors you use have built in ejection charge. Your rocket avionics are right above it. Ejection charge can harm the avionics. How you deal with it? And Eject the parachutes?

  42. Got Grapes?

    This thiccness of that Mac bro…treat yourself to a new one!

  43. Orion Aerospace

    Fun little hack: if you ask the rocket very nicely, it will perform just like the simulations. But only if you ask nicely.

  44. Brixxter

    I absolutely love these kinds of videos, even though many people are probably here for fancy rockets and spectacular failures (I can’t blame them! :D) this is probably my favorite video format. Easy to follow along, very detailed and informative without being hard to grasp. I could watch these on loop for days.

  45. Gedalia Koehler

    Cool stuff. Like to see it!
    I’m used to doing matlab for class. It’s crazy that you got sponsored by them, lol. good stuff.

  46. Bananarammaa

    Yes please keep posting these!! I’d love to learn more about creating my own simulation and control software

  47. Cody Porter

    This was an awesome video, I would be thrilled to see some more about this. I have recently started an attempt to gimbal a model rocket.

  48. Albert Bouchal

    I absolutely LOVE this episode. I love Matlab and Simulink and bringing rockets to it made my heart really happy! More of these please! <3

  49. Alec

    The Simulink coding standard would like to have a word with those kinked lines…

    I kid. For real though, congrats for landing a Mathworks sponsorship! That’s awesome!

    If you keep doing this as a series you should look into scripting Monte Carlo runs for data-driven design optimization. I think the community would really get a kick out of that.

  50. Mark Harlan

    Yes – 100% would love to see this become a series!! Thanks Joe.

  51. Erik Hjertholm

    2:08 fun fact (or at least fun if you’re a nerd): unit symbols are lower case unless its named after a person like pressure (Pa), force (N) etc., or if it is a prefix meaning million or more like Mega, Terra etc.

    Ps: the symbol for litre can be both upper case and lower case.

  52. Sunkari Sricharan

    5:24 it is like seeing a latin movie without any subtitles🙏🙏

  53. Robert Steinbeiss

    My physics teachers hit us on that kind of measurement. You take the “shortest” point in time for an event based measurement, hence the transition of the rocket tip through the zero point, the velocity is the highest there. your error gets reduced by a good factor.

  54. Asuthosh C R

    I liked the concept you explained. that was short and sweet. Me being an Aerospace student I love the way you explained each term. I will give a shot to your Simulink model.

  55. TheCarBakery

    I`ve literally been working on a simulation to figure out the apogee of a sounding rocket for the past year. But I wrote the whole thing in Matlab. Why did nobody tell me about Simulink? :’)

  56. Futbol_719

    run “aero_guidance”; thank me later

  57. Wade Fallin

    This is getting weird! I am 66 years old and I was able to understand everything you talked about in this video and I’ve never took calculus!

  58. Carter McKenzie

    I would love to see some closed loop systems! Great job explaining everything like always Joe. I am studying stuff this right now in control systems class and you make it sound easy.

  59. devam Saini

    This was cool, but do PID that’s the real juice

  60. JacksonsPOV

    As a Computer and Aerospace Engineer, I would love to see more videos like these!

  61. Victor Boesen

    It’s good to see Boe Jarnard having a good time on the table:))

  62. santiago hernandez trujil

    This is so cool Joe! I just learned to use simulink in my college and seen this type of content makes me so happy, ’cause I understand better some of the rocket science you do! Nice video by the way!

  63. nicolas correa

    Im a mechanical engineering student and we are literally doing this in controls class

  64. Spinomine

    That was fascinating! As an engineering student I’d really love to see another one of those videos

  65. William Rose

    I’d love to see a simulation of a closed loop system

  66. d00dEEE

    I’ve seen some car guys do a swing test to measure the inertia tensor of a race car, it’s pretty hilarious.

  67. mumblbee bee

    Thank you, that was a great primer to take the fear of modelling! I used Matlab a long time ago in Uni and not touched it since. For a second-order hobby it’s outof budget. But your presentation has been inspiring, and I may dabble a bit again!
    I would absolutely love a follow-up on closing the loop – got on mathworks, this guy is selling you well! ;-)

  68. Tom Dv

    I’d love to see a video on implementing a PID

  69. Iron Man

    Everyone grows lockdown beards and here is Joey B. looking clean as ever.

  70. Code Site

    If he takes aerospace engineering classes now online I would be the first to join !!!😭👍🏻👍🏻👍🏻 I will meet you one day in the future sir 👍🏻👍🏻

  71. Z-sick C

    Love the content keep it up

  72. Messer Morfeo

    This is a fantastic explanation. I can’t believe you made me comprehend (at least to some extent) rocket science.

  73. Nicholas Rehm

    All of that work just to write out the thrust components in code like:

    Tx = T*sin(theta)
    Ty = T*cos(theta)


  74. videotutoriales johnson

    I litterally started today learning Simulink in college. What a coincidence😂😂

  75. ALX Entourage

    Is it me or he’s beginning to resemble Elon Musk in his physical appearance?

  76. Lorenzo Carelli apd

    I am really interested into seeing how your closed loop control system looks like.
    I thank you for all the great work you have shared with the community because many of your videos helped me and I think many other people understand better some kinematics problems and mechanical engineering designs choices.👍

  77. Mohammed Algailani

    I’m impressed. The way you measured the inertia, Simulink implementation, and the very cool Simscape simulation!

  78. Nkm R

    You lost me after you said “hello everyone, I’m Joe Barnard”…🤣

  79. Bob

    Hi Joe, would love to see the 102 on this series. Also curious how you would find moment of inertia about the roll axis.

  80. Jun Muta

    Joe, does your rockets’ computers control the rockets in 3D or do they align to the azimuth and fly in 2D like the Saturn V?

  81. sz Tz

    You’re a smart guy, I don’t just say that to everyone.

  82. Dhruaan Desai

    joe sounds like my yoga instructor 😂

  83. semeion

    I wish my professors could explain as well as you.

  84. Adrian

    Hey Joe, thanks for the upload! :) If you make another video of this topic, those parts would interest me (I guess others) particulary:
    – for (full) state feedback control /lqr control –> the implementation in C-code for your microcontroller / also z-transformation for incontinous controllers
    – the modelling of windgusts in simulink –> just random noise block or something else?
    – do you account that also the mass of the vehicle reduces? (rocket equation)
    – Implementation of the Kalman filter

    I think your rocket use case is ideal to show practical use like brian douglas does in the matlab tech talks –>

    cheers :)

  85. Alpha Omega Rocketry

    This EXACTLY what I needed! I’m in the middle of my own simulations and this will help a lot!!!

  86. TheAstronomyDude

    Why is thrust vectoring so difficult? When I was a kid I thought all rockets aimed their nozzle like how you steer a small boat.

  87. Rene Bartkowiak

    That’s an awesome kind of tutorial Joe, thanks a lot. Would love to see a closed loop PID simulation video, too! Keep up that awesome content, very well done.

  88. YourMJK

    5:05 PLEASE include units in calculations, it’s much easier to follow along if you do.

  89. Martijn Schuman

    That RGB PBS logo in the background is nicely played. Exactly between the walls

  90. Joey Murphy

    Quick tip for finding center of mass of a long body (rather than guess and check): Stick your two fingers out in front of you like you’re doing finger guns. Lay the long body across your two fingers. If you pull your two fingers slowly together, the rocket will automagically end up balancing on your fingers, which are now at the center of mass. Definitely try it out; don’t take my word for it as hearsay :).

  91. Neil Judell

    Nicely done! Love the method for computing moment of inertia – I’ve always relied on Solidworks models for that. Now, what your viewers need to know: the MathWorks tools used for this simulation will retail for about $15,000, plus or minus a few thousand dollars. HOWEVER, in recent years, MathWorks has seen fit to sell “home” licenses for these tools. They may not be used for research, nor may they be used for professional activity. Same tools, same functions (except instead of being able to put on 3 computers and transfer from computer to computer at will, you can only put it on one computer and transfer once or twice a year). But about 50x less expensive: $149 for Matlab, $45 for Simulink, $45 for Simscape, $45 for Simscape multibody, $45 for control system toolbox.
    No, I don’t work for MathWorks (I wish – you won’t believe what I pay in maintenance contract alone).

  92. Rohan Bandaru

    OMG the timing of this video. I literally needed this right now.

  93. Braeden Bowman

    you know what, I’ll say it: PogChamp

  94. Gary H

    I literally can’t comprehend this guys genius.

  95. rabin niroula

    ive never been this fast at clicking the notification

  96. Erik Bongers

    Yeah, PID feedback would be nice. And how you tweak the P, I and D factors.

  97. Hicham Mohsen


  98. Lukas Keen

    As an aerospace student myself I would love to see what you’re closed loop system would look like. Also as a side note: You touched on so many important topics and processes that we encounter day to day so awesome work!
    (just calculating inertia values with oscillation was fantastic tbh)

  99. RyanRising

    “We won’t get into PID controllers or some of the more fancy thrust vector control stuff…”
    aww man
    WOO!! Excited to see more of how you deal with these, even though you’ve probably gone over this stuff in other places before.

  100. Pinochet

    (Listens to Joe Barnard talk Rockets)

    “I like your funny words, magic man”

Comments are closed.