MATLAB AppDesigner | Tutorial 10 | Startup function

Поделиться
HTML-код
  • Опубликовано: 12 окт 2024
  • ☑️ In this video:
    0:06 Introduction
    1:12 How to create the startup function
    3:16 Adding a switch and lamp to startup function
    4:25 Finished app
    4:42 What's in the next tutorial
    ▶️ If you are finding my videos helpful please leave a like and subscribe to my channel.
    If you have any questions or topics that you are interested to learn about, let me know in the comments or on my discussion page : www.youtube.co....
    ⏭️ In the upcoming videos I'll teach how to use all the components in components library and how to connect AppDesigner to Simulink.
    ✉️ Get in touch:
    If you do need some one to one support, feel free to drop an email via my contact page on my website. I will try my best to get back to you.
    Thanks for watching everyone!

Комментарии • 27

  • @phranklyn
    @phranklyn 4 года назад +12

    Thank you for creating tutorials that are concise and straight to the point.
    It's great being able to have all the relevant information in a bite-size video with no fluff.
    This is the gold-standard for tutorials, more people need to take your lead.

  • @MrElephantblue
    @MrElephantblue 3 года назад +3

    Benito, thanks a lot for this series of Tutorials. This is exactly what I needed to get started with App Designer! Great!!!

  • @Nicho2020
    @Nicho2020 2 года назад

    Excellent set of tutorials! Simple and concise - the best way of presenting new material.

  • @abdulkadirgozuoglu8946
    @abdulkadirgozuoglu8946 4 года назад +2

    The tutorials are wondeful:) Thank you..

  • @miguelmendoza3403
    @miguelmendoza3403 4 месяца назад

    Veru useful, thank you 😃

  • @zainalabidin9171
    @zainalabidin9171 3 года назад +1

    Hy Benito
    I just have one question, especially for this tutorial. I could not find the startupFcn(app) callback. I am using Matlab 2021a.
    Do you have any idea, why this could happend?
    Every videos about this appdesigner really helpful. Thank you in advance. Keep developing this!

    • @pikipogo5253
      @pikipogo5253 2 года назад

      I cant find it either... Did you find it?

    • @zainalabidin9171
      @zainalabidin9171 2 года назад

      @@pikipogo5253 I tried it again and it worked. I'm not sure what the cause is. But this is what I can remember so far. Before, I was looking it into the UIAxes, not in UIFigure. Somehow it was intersect the whole app with the UIAxes. So I re-created the the app, with smaller UIAxes so I can right-click into UIFigure, not UIAxes. Hope it also works for you

  • @zakariaalmohammadi5753
    @zakariaalmohammadi5753 2 года назад +3

    In the latest version of MATLAB I can't find the StartUpFnc can someone help me, please??

    • @ShayanAsim
      @ShayanAsim 2 года назад +6

      Hi,
      Right click on the name of your app, which would be above app.UIFigure. You can set up the Startup Function from there.

    • @thelearner3962
      @thelearner3962 2 года назад +1

      @@ShayanAsim Thank you so much couldsn't find it at first as well!

    • @abrarfahim3516
      @abrarfahim3516 9 месяцев назад

      @ShayanAsim
      Thanks mate it worked

  • @mariek5527
    @mariek5527 4 года назад +1

    Dear Benito,
    thanks a lot for this useful channel.
    I'm building a big Matlab program with a GUI.
    I have designed the GUI using app designer (but not programed it yet)..
    I'm building a main.m that opens GUI and I'm having difficulty in transferring my functions to app designer
    should I put the main commands as a startup function?
    thank you in advance

    • @BenitoSebastian
      @BenitoSebastian  4 года назад

      Hi Marie,
      Thanks for the feedback.
      So if you have a function that calculates something then you might want to add it as a callback function attached to a button. See Tutorial 2 to get a better idea. You only need to use a startup function when you want to the app to do a calculation as soon as it opens. All the best!

    • @mariek5527
      @mariek5527 4 года назад

      Dear Benito,
      Thank you for replying
      I’ve already seen most of you’re videos
      my program is a mess 🙈
      Do you have an email or messenger to contact you, if you please?
      Thanks

    • @BenitoSebastian
      @BenitoSebastian  4 года назад +1

      @@mariek5527 Hi Marie,
      You can contact me via linked in or email @ibenitoseb@gmail.com

    • @mariek5527
      @mariek5527 4 года назад

      Dear Benito
      Thank you so much
      I will contact you soon
      Regards

  • @ziauddinahmedzihan9718
    @ziauddinahmedzihan9718 4 года назад +1

    Could you demonstrate how to use a neural network model in a app?

  • @sinisarunjic2579
    @sinisarunjic2579 4 года назад +1

    I just wanna to add if you wanna to have angle on x you should do plot(app.UIAxes,x,y)

  • @goofyrice
    @goofyrice 4 года назад +1

    Since you already did this in PlotButtonPushed(), can you just call that function inside the StartupFcn() instead of rewriting the x=, y=, plot, commands?

    • @BenitoSebastian
      @BenitoSebastian  4 года назад

      Hi Charles,
      To call it as a function, you need to create a function which does the calculation. You can create a function by clicking the function button in the editor toolbar. Once you have created a function in the methods then you can call that function in the startup function. Hope that helps. See Tutorial 11 for creating functions. All the best!

  • @faisalaziz6331
    @faisalaziz6331 3 года назад

    Hi benito, could you please reply me with how to enter 6x6 matrix in app designer like we used to do in Matlab also how matrix operations work in app designer

  • @mondherfkih9691
    @mondherfkih9691 3 года назад

    thank you for important tutorials
    now i can do some simple app for my pupils
    but i can not plot tangent at t= 0 for tension v(t) = 6*(1-exp(-t/0.001))
    can you help me
    and thank you in advance

  • @divyathakurani3646
    @divyathakurani3646 3 года назад

    Hy Benito,
    I am new to MATLAB ApDesigner. I have one small query. how we can plot vehicle costmap in app designer. if i am using command suggested in this video i am getting an error "Error using plot
    Data must be numeric, datetime, duration or an array convertible to double".
    could you please guide me to get rid of this error??
    thanks

  • @uditsharma1831
    @uditsharma1831 4 года назад

    I am getting the error of too many input arguments using plot when running the code. What could be the issue?