In case it is helpful, here are all my Matlab videos in a single playlist kzbin.info/aero/PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF. You can support this channel via Patreon at www.patreon.com/christopherwlum or by clicking the 'THANKS' button underneath the video. Please let me know what you think in the comments. Thanks for watching!
@hihry85553 жыл бұрын
Thank you. Also, where can i dowbload your script ?
@mihirsanjay45772 жыл бұрын
for those who are using R2021b some tweaks are to be made as described below 11:42 you will see an extra variable (probably named ans) in your workspace once 'sim('PendulumModel.slx')' command is executed. 13:55 Now after that when you create an outport(yout) in simulink and run the code, you wont see any other variable getting added to your workspace. that is because the 'yout' variable will be created under the variable that was previously generated(probably named ans). Due to this you wont get the output you are expecting, to get the appropriate output just change code line, at 15:17 thetasignal = yout.getElement('theta'); to thetasingal = ans.yout.getElement('theta'); also to check the yout variable in command prompt , 14:05 type 'ans.yout'+enter 19:31 to get signal dimensions go to debug ------> information overlays ------->signals------->signal dimensions 23:58 'simX' & 30:38 'logsout' is similar variable to 'yout'. Change the code in similar way.
@davidecascioli4717 Жыл бұрын
Love you
@anshumansharma67584 жыл бұрын
Your tutorials are long, but the clarity after watching them is amazing. Thank you for putting these efforts for us.
@ChristopherLum4 жыл бұрын
I'm glad it was helpful, thanks for watching!
@minhaochen28474 жыл бұрын
The most helpful Matlab&Simulink instruction I have even seen. Thanks a lot!
@actuallyjc4 жыл бұрын
I was lost until I found you. Thank you very much for the great content.
@ChristopherLum4 жыл бұрын
I'm glad it was helpful. I have other videos that you might be in interested in regarding Matlab and Simulink. Thanks for watching!
@vor9463 жыл бұрын
this comment is so sweet:)
@tunichtgut52854 жыл бұрын
Your tutorials are far better than the stuff from Mathworks. Thank your very much!
@ChristopherLum4 жыл бұрын
Thanks for the kind words. I've got several other videos on Matlab at kzbin.info/aero/PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF, please feel free to check them out. Thanks for watching!
@paulpietrowicz3683 Жыл бұрын
AE501- The level of detail and why the methods are done each way is very helpful. Taking the viewer from novice to beginner quickly. More useful tools in the toolbox for Simulink! Thank you Chris!
@justinp.s99415 жыл бұрын
the best recommended for study exchange data from Simulink and Matlab Script ever !!!!!!
@jamesdavey31015 жыл бұрын
Scripting being the superior interface to GUI-based systems, this is a helpful resource.
@triskitman1245 жыл бұрын
Being able to have Matlab and Simulink talk to each other is a big advantage. Thanks
@altuber99_athlete3 жыл бұрын
Thanks × 100. There aren't great video tutorials for beginners in Matlab/Simulink. Greetings from Venezuela.
@elijahleonen19810 ай бұрын
AE501: Very helpful explanation of using MATLAB script with Simulink!
@rahelarefayne29056 ай бұрын
Thank you professor for your help .l am student from ethiopia ,tigray
@yugeshkeluskar4 жыл бұрын
You are the best teacher that I have ever found for Control Theory, I wish I knew you when I was taking my control systems course at university and yeah... you just got a new subscriber. ;)
@ChristopherLum4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel, please feel free to check them out. Thanks for watching!
@yugeshkeluskar4 жыл бұрын
@@ChristopherLum sure
@musicnonstop9874 жыл бұрын
Christopher Lum, You are a really good instructor. You should make more tutorials!! Maybe more beginners, intermediate, expert
@marcosszmania58742 жыл бұрын
AE 512: good refresher on Simulink!
@ashish-blessings2 жыл бұрын
Excellent pedagogy. Thankyou Prof. Lum
@ChristopherLum2 жыл бұрын
Hi Ashish, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@alexsteahr84584 жыл бұрын
This is a pretty neat way to take Simulink and data analysis to the next level of complexity
@alisoncaprioli48614 жыл бұрын
Learned Simulink a while ago, glad there's a thorough video to help explain again different features.
@Abu-cb6bj3 жыл бұрын
i cant thank you enough. I was stucked at a problem for so long. Your video has helped me solve it.
@julianwoo16095 жыл бұрын
Great video on showing how to return and use information from a Simulink model
@safafituri25373 жыл бұрын
Thank you. I have nothing else to describe how thankful i am 🥺
@jackpascho2561 Жыл бұрын
AA 516: This video made a previously daunting task really easy to understand and follow, I'm excited to learn more about Simulink modeling!
@eengpriyasingh7062 жыл бұрын
My very basic to complex doubts ...all are sorted thanku for such great video.....
@ChristopherLum2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@sethwhittington283 жыл бұрын
AE501: Very thorough tutorial. Provides instruction on multiple different ways to get data from Simulink to Matlab and vis-à-vis. I think I prefer your 45 minute videos to the 70+ minute videos, especially for foreign concepts.
@sidraman69505 жыл бұрын
Very helpful video. Gave me a much better understanding of using MATLAB to interact with a Simulink model
@aimeepak7172 жыл бұрын
AE501: This video had exactly what I needed to output data from Simulink. I also never knew you could run a Simulink model from a Matlab script! Knowing that in undergrad would've have helped a lot. Thanks again for a great Simulink reference.
@ChristopherLum2 жыл бұрын
Aimee, I'm glad it was helpful. Were you able to get the data from the 'To Workspace' block using the new syntax we discussed?
@aimeepak7172 жыл бұрын
@@ChristopherLum I was! I tried out both the "out1" block and the "to workspace" block.
@ginebro19304 жыл бұрын
Is incredible how bad documented Matlab is, thanks Christopher, you are a life saver.
@rudranathpalit99483 жыл бұрын
I have been searching for this for the last 4hrs. Thanks a lot God
@TudorMiron2 жыл бұрын
Many thanks for your work! If I would find this tutorial earlier it would have saved me tons of time spent figuring things out myself. Still, this was extremely helpful, thanks to concise and clear way that you present information. Looking forward to learn more from your excellent tutorials.
@ChristopherLum Жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@jacobcarroll39335 жыл бұрын
This video clears up a lot about interfacing MatLAB and Simulink.
@SufiShahHamidJalali2 жыл бұрын
One of the very useful that is worth watching and you will learn something from it.
@ChristopherLum2 жыл бұрын
Hi Sufi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@SufiShahHamidJalali2 жыл бұрын
@@ChristopherLum Thanks Chris. Sure I will consider that in a near future! Your work is good and it is worth it so I will do that but in a near future. Now, I am in the middle of something please.
@ahungryflyer3 жыл бұрын
AE501: Great intro to getting matlab to talk to simulink. I was using R2020b and had some trouble getting "yout" to work correctly like your video. Had to go to model settings -> data import/export -> "uncheck" single simulation output and all worked perfectly. I guess mathworks must have modified that between 2016b and now.
@ChristopherLum3 жыл бұрын
Andrew, thanks for pointing this out, this is very helpful for users with R2020b. There were indeed some changes made between Matlab versions. As such, be careful in future demos and you may need to make small tweaks.
@lucianogalan32102 жыл бұрын
Just saved me after 45 minutes of trial and error. Thanks!
@user-ep1mj2tq3j Жыл бұрын
Thank you! I was struggling from the same issue.
@mohamedmamdouhelkholy2072 Жыл бұрын
I keep getting this error "Dot indexing is not supported for variables of this type" .
@kashishsingh97122 жыл бұрын
AMAZING VIDEO. Everything is so clear, no confusion whatsoever. Thank you so much.
@ChristopherLum2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@rowellcastro26837 ай бұрын
AA516: Thank you for this tutorial Professor! It might be a little bit confusing to some with the newer versions and how the data are structured slightly different but getting help from mathworks and directly clicking the data outputs to see what is stored in there will solve most of the issues. Thanks.
@ChristopherLum7 ай бұрын
I'm glad you are able to reconcile the differences. This is a powerful mechanism and we'll use this a lot in the future.
@manitaregmi69322 жыл бұрын
AA 516 : Great video, really helped me to get started on HW 3.
@simonriley77504 жыл бұрын
Amazing lecture. Detailed and well put together. Thank you!
@ChristopherLum4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel please feel free to check them out and let me know what you think in the comments. Thanks for watching
@MrAWD-ox3gk2 жыл бұрын
Your explanation is so good! Thanks.
@saviobrenner2 жыл бұрын
Thanks Sir, greetings from Brazil.
@garrettdavis46654 жыл бұрын
Simulink seems to be a super powerful tool!
@ngergihun Жыл бұрын
One of the best and most useful tutorial. Straightforward but full of details and information at the same time! Huge thanks for it! WANT MORE! :D
@ChristopherLum Жыл бұрын
Hi Gergely, Thanks for the kind words, I'm glad you enjoyed the video. I have a playlist dedicated to Matlab/Simulink on the channel. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@everettkinyon76025 жыл бұрын
Thanks! It's really great to see the depth of Simulink/Matlab package
@maheshwaria43593 жыл бұрын
Thank you for your kind help. It saves more time.
@haligali43603 жыл бұрын
You really deserve much more likes!!!!!!!
@ChristopherLum3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
@jesusespinoza23494 жыл бұрын
Learned a lot; I did most of this stuff manually, but these steps can help save a lot of time
@michelepinato11582 жыл бұрын
Thank you for this clear and helpful tutorial
@ChristopherLum2 жыл бұрын
Hi Michele, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@reedthompson60315 жыл бұрын
I like how you can create your own torque function and model it in simulink.
@1matzeplayer14 жыл бұрын
Man, you are Incredible!!!
@ChristopherLum4 жыл бұрын
I'm glad you enjoyed it. I've got several other videos in this series on the channel (and more coming in the very near future). Please let me know what you think of the other videos, thanks for watching!
@user-yz6ho8fx8j Жыл бұрын
Great Video!! Very good explanaitions, very good speed an great examples!!
@SomeoneCommenting4 жыл бұрын
Although at 15:27 he shows you how to extract the time signal from the structure (which is nice to learn how to extract any signal from a structure), every simulation will always give you the time vector for the whole thing in the variable *tout* , which you don't need to define because the model will output it by default for you. That *t* that he defined is already *tout* if you wanted to use it. You can see in the variables section that they will both end having the same dimensions, a vector of 903 elements.
@saurabhtalele15374 жыл бұрын
Sir its just really really helpful...... 🌹🌹🌹
@ChristopherLum4 жыл бұрын
I'm glad it was helpful. There are other Simulink videos on the channel. Please feel free to check them out. I'd love to hear from you in the comments on a future video. Thanks for watching!
@anthonyz27194 жыл бұрын
Had a bit of trouble defining a function on Simulink recently. This gives me hope!! Thank you for the great content.
@jakegalleryn62004 жыл бұрын
Very in-depth.
@selamhendrix52525 жыл бұрын
great reference for a cleaner/faster way of using simulink thanks
@jxpeng82242 жыл бұрын
it's super clear and supportive. Thanks!
@ChristopherLum2 жыл бұрын
Hi JX, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@nathanaelvertori91115 жыл бұрын
very good turorial, easy to understand. Thank you!
@ChristopherLum5 жыл бұрын
Thanks for watching!
@mrcjg425 жыл бұрын
This video was so helpful I liked *and* commented on it. I don't do that often.
@kenrickchan11655 жыл бұрын
Great resource for learning how to extract simulation data for analysis!
@user-lh2vq1mn1q4 жыл бұрын
thank you very much!, this is very informative and helpfull! I'm an engeneering studant and your channel is like a tresure for me.
@charlesharmon90654 жыл бұрын
A lot of powerful tools/commands! Thank you for the tutorial, Dr. Lum.
@jithendransmusicworld80843 жыл бұрын
Sir,superb description and the way you presented is simply excellent....Expect more from you sir
@ericwang1614 жыл бұрын
Another great video! Starting to understand the true ability that Simulink has!
@takudzwamashamba74532 жыл бұрын
God bless you again bro!
@veekashpatel9535 жыл бұрын
Video is really helpful. Lots of good quality of life information.
@muhammadawais581 Жыл бұрын
excellent explanation. Thank you so much.
@ChristopherLum Жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
@Apocobat2 жыл бұрын
Idk if its a quirk or I missed something in the video, but in order to access yout, I have to use out.yout as everything from the model is stored in an out parameter. Not sure why this is, and it seems like not many have this issue, but regardless, this is super helpful and will help me automate a ton of stuff. I'm working with motor models as a side project and running different parameters, voltages, etc and recording steady state/time delay etc and plotting, something that I knew could be done, but had no idea how to do it, seems very possible now. If i wanted to sweep 3-24V, record the steady state to an array, and plot the array, I could very easily do this, even juggling multiple models (comparing simulink parameters and simscape physical sims). This will save me a ton of time, thank you
@ChristopherLum2 жыл бұрын
Hi Joe, You are correct, this is one of the new additions/changes that Simulink implemented recently. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer questions via Patreon. Thanks for watching! -Chris
@michaelrudolf99884 жыл бұрын
good overview how to use simulink data in matlab. The graphs in matlab definitely look nicer than the scope charts.
@samedpekdemir50243 жыл бұрын
Totally great tutorial.
@mgmgthwin5843 жыл бұрын
Great Tutorial! Very thank you Sir.
@nimamin5 жыл бұрын
A really great and useful tutorial. Thanks.
@ChristopherLum5 жыл бұрын
Thanks for watching
@kenrickchan11655 жыл бұрын
Excellent tutorial
@willowpistone41484 жыл бұрын
this video really tied the other intro to Simulink/matlab videos together! I like being able to quickly get the output from the model to compare it to my own analytical calculations- great for visualization too
@zhiqiangfu79484 жыл бұрын
This is brilliant, thank you very very much.
@samerrasheed22792 жыл бұрын
It's such an amazing job❤ My gratitude and appreciation for you🙏🙏
@ChristopherLum2 жыл бұрын
Hi Samer, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@Shahaha04184 жыл бұрын
Great tutorial! Thank you for the nice demonstrations.
@ChristopherLum4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel please feel free to check them out and let me know what you think in the comments. Thanks for watching!
@westlifegc2 жыл бұрын
Awesome tutorial! Really thank you!
@ChristopherLum2 жыл бұрын
Hi Eric, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@souravmondal17675 жыл бұрын
This video is very helpful.
@karlbalitaan4 жыл бұрын
Nice video! Thanks for telling us the different ways to grab outputs from our Simulink model
@mitchellhubbard57275 жыл бұрын
Thanks for the great video. This was very helpful and well laid out!
@chetanchaudhari11213 жыл бұрын
Great videos Christopher.. Thanks for your efforts for putting this
@HIEPNGUYEN-wb7yg5 жыл бұрын
Great tutorial. Very helpful. Thanks.
@christophersanchez22564 жыл бұрын
This was very helpful for learning more about Simulink!
@cjyoo14104 жыл бұрын
Thanks for the helpful videos
@AnkitKumarmeb3 жыл бұрын
very useful video, thank you for this!
@robertdelossantos19364 жыл бұрын
Cleaner method in defining inputs/outputs. Much more comfortable reading data on a matlab script than a Simulink model at the moment.
@kaiserluvsmariel2 жыл бұрын
This was an incredible video! Thank you so much this helped me with my final project.
@ChristopherLum2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
@matthewbajamundi87744 жыл бұрын
A very helpful video. Thank you for posting this.
@philiparcher3675 жыл бұрын
This is excellent. Well done
@ChristopherLum5 жыл бұрын
I'm glad it was helpful, thanks for watching!
@lindaafifa19973 жыл бұрын
thank you sir, for your explanantion
@xolanisiwela28654 жыл бұрын
This is brilliant, thank you.
@krystoflis71575 жыл бұрын
Very Good Video Thanks Chris
@pradipbane42373 жыл бұрын
this what i was searching for so long thanks a lot
@rileynelson23215 жыл бұрын
I never knew they were so simply interconnected!
@petermay60907 ай бұрын
AA516: Very helpful!
@ryoonoue10762 жыл бұрын
AE501. Great Video. I had actually never really used Simulink and I was thinking whether this was possible during the last video. I think you did a great job describing how to utilize it. Thanks for the vid!
@carterkraus28155 жыл бұрын
Excellent tutorial, thanks
@sajeew4 жыл бұрын
This section helped in our homeworks Thanks Sam
@tonyjanssen42554 жыл бұрын
Wow! This is great. Thank you so much.
@ChristopherLum4 жыл бұрын
I'm glad it was helpful thanks for watching!
@hosseinrohani5087 Жыл бұрын
Very useful!! Thank you.
@ChristopherLum Жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
@truthclips2 жыл бұрын
So helpful...thank you so much!!
@ChristopherLum2 жыл бұрын
Thanks for the kind words, I'm glad you enjoyed the video. If the find the these videos to be helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching!
@ryancazin59305 жыл бұрын
Thanks for the detailed tutorials on these utilities!