MATLAB Tutorial Lesson

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 42

  • @EngineeringwithDrKelseyJoy
    @EngineeringwithDrKelseyJoy 3 роки тому +1

    I like the demonstration of using the help function to see the documentation (comments in your function). Very clear examples.

  • @princesstahir6765
    @princesstahir6765 5 років тому

    thanks a lot Mr. Matthew

  • @allendeguzman6771
    @allendeguzman6771 6 років тому

    I found this ,,
    extremely helpful for a computer science class

    • @PCgamerChannel
      @PCgamerChannel 4 роки тому

      u sure it didnt help you with pe class?

  • @falcontalkies3890
    @falcontalkies3890 6 років тому

    This video was helpful and saved me.

  • @sukantakumarmuduli7449
    @sukantakumarmuduli7449 5 років тому

    Thanks Matthew it's really helpfull

  • @kirillchernishov2224
    @kirillchernishov2224 5 років тому

    Hey, this was helpful insight but I couldn't solve my issue...
    I have a Simulink model that represents an HVAC System. I need to input a range of Outdoor temperatures into my simulink model. A specific range with an increment. Then it goes to and if-then-else split system. Is there an option for this within either Simulink or a Matlab function? Thanks.

  • @sujiang974
    @sujiang974 6 років тому

    this video is so helpful, i'm lucky to meet this solution, thank you!

  • @Freddie1M
    @Freddie1M 8 років тому

    in the last bit with the baseball question, I want to do the same thing, but I want to input a range of values for the height and then display a range of corresponding outputs for the velocity (as velocity is dependent on height). My assignment says "you are not allowed to use any loop in your function or your program (you may have to use the element wise multiplication/division)". Help would be appreciated.

    • @matthewrhudy2324
      @matthewrhudy2324  8 років тому

      Sounds like your assignment is referring to a vector calculation. The note about "element wise" means you may need to include periods in your operations, such as ".*" or "./". This is not really the topic of this video. Look for help with vector calculations

  • @أحمدالفزاري-غ5ن
    @أحمدالفزاري-غ5ن 5 років тому

    Hi Prof
    Could you explain to us how to do
    Such these questions Write a MATLAB code that can convert a vector in any coordinate system to the other two coordinate systems. The code must ask the use to select in which coordinate system is the entered data
    It says vector not point so the user will enter variables and waiting variable vectors outcome
    Can be this done by matlab

  • @BestEzEu
    @BestEzEu 4 роки тому

    Very helpful! :)
    Any idea how to get a matrix as output with more than 1 row? :)

    • @matthewrhudy2324
      @matthewrhudy2324  4 роки тому

      You can define a variable as an output that can be a matrix. If you define that variable within your function as a matrix, it will give the matrix as an output and can contain multiple rows.

    • @BestEzEu
      @BestEzEu 4 роки тому

      @@matthewrhudy2324 Thank you! It's been solved now :)

  • @hayderal-lami4335
    @hayderal-lami4335 8 років тому

    thank you so much for this clarification it's so helpfull

  • @dennydeff4972
    @dennydeff4972 3 роки тому

    hello sir. how to solve the following problem :
    "Parse error: The input was too complicated or too big for MATLAB to parse"
    i want to create a function with 1 input and 54 output.
    thanks

    • @matthewrhudy2324
      @matthewrhudy2324  3 роки тому

      54 outputs is a lot. I would suggest combining these outputs into vectors/matrices/structures so that you can reduce this number.

  • @ravirajpareek9909
    @ravirajpareek9909 3 роки тому

    how to pass a function as an argument of another function in MATLAB?

  • @rever4217
    @rever4217 8 років тому +1

    You uploaded this almost a year after you recorded it??

    • @matthewrhudy2324
      @matthewrhudy2324  8 років тому +1

      I decided to make these videos available to the public at that time. Previously, these had been internal videos for a course

    • @rever4217
      @rever4217 8 років тому +1

      Matthew Rhudy Ah I see.

  • @JanviHiren1684
    @JanviHiren1684 8 років тому

    what if I want to get only 2nd output and not any other output. How do I do that?

    • @matthewrhudy2324
      @matthewrhudy2324  8 років тому

      You can either define a variable for the 1st output and just not use it, or you can use the tilde symbol (~) in place of any outputs that you don't want.

  • @mdiqbal7168
    @mdiqbal7168 4 роки тому

    How to store multiple input from one edit text box in matlab gui in text file then all input of single edit text box show in axes in gui of matlab

  • @tjdgh1785
    @tjdgh1785 4 роки тому

    감사합니다! thank you!

  • @AwestruckChemicals
    @AwestruckChemicals 7 років тому

    How can I put two IF statements into one function block?
    I need:
    if T1-T2>8, Output=5
    if T1-T2

    • @matthewrhudy2324
      @matthewrhudy2324  7 років тому +1

      Try using ELSEIF

    • @AwestruckChemicals
      @AwestruckChemicals 7 років тому

      Thanks for the quick reply. Yes I have tried elseif also but to no avail. The error says "output argument 'Output' is not assigned on some execution paths."
      It is a pump for a solar water heater and the output is the pump's flow rate (an on/off pump)
      The code is:
      function Output = pump(T1,T2)
      if T1-T2>8, Output=5
      elseif T1-T2

    • @matthewrhudy2324
      @matthewrhudy2324  7 років тому

      In order to include this in a function, the variable "Output" must always take a value. If you do not include an "ELSE" section containing Output = something the function will give an error, e.g., if given an input of T1-T2 = 6

    • @AwestruckChemicals
      @AwestruckChemicals 7 років тому

      Thank you for you help Sir. I actually discovered a very simple solution this; I used a relay block and set the ranges to my corresponding output values. I appreciate the help anyway, have a good day. :)

  • @hadjerha1782
    @hadjerha1782 6 років тому

    i need the simulation of diagonal algebraic space time block code pleaaaaase

  • @zaibi558
    @zaibi558 7 років тому

    u r best 10/10

  • @NurulHidayah-qu1ne
    @NurulHidayah-qu1ne 7 років тому

    how to write array input?

  • @KayesImran
    @KayesImran 8 років тому

    How can I generate two different functions in the same file.

    • @matthewrhudy2324
      @matthewrhudy2324  8 років тому

      That depends on what you want to do with the functions. You can define "anonymous" functions within a script for shorter/simpler functions (as many as you want). You can also define subfunctions within a function file, but these subfunctions can only be called my the main function. If you want two separate function to use within other scripts, unfortunately as far as I know you need two separate function files.

  • @dauof3623
    @dauof3623 2 роки тому

    Nice mic

  • @vannatorn5801
    @vannatorn5801 2 роки тому

    Dear sir,
    thank you for your valuable video, could you please help me???

  • @johnr1875
    @johnr1875 5 років тому

    this was dope

    • @frankbrown7043
      @frankbrown7043 2 роки тому

      Most American Egineers use the foot second and pound system. So the acceleration becomes ft / sec**2 and is 32.174.

    • @johnr1875
      @johnr1875 2 роки тому

      @@frankbrown7043 you're not wrong

  • @MirajulIslam-el4ge
    @MirajulIslam-el4ge 8 років тому +2

    the sign will be +,,not - ,,v^2 = v0^2 + 2gh

    • @matthewrhudy2324
      @matthewrhudy2324  8 років тому

      It just depends on your sign convention as well as your definition of "g". If the positive direction is defined as up, and the value of g is 9.81 m/s^2, then you would need the minus. Alternatively, you can define g as -9.81 m/s^2.