Octave Tutorial #8: Writing Scripts and Functions for Absolute Beginners

Matlab/Octave tutorial for writing scripts and functions for absolute beginners.
Please feel free to make any comments, and subscribe and thumbs up if you like the video.
Video content with timestamp:
00:00 - Intro
00:55 - What are scripts and functions?
02:30 - Write a script
07:21 - Write a function
14:26 - Write a nested function
#Octave #Matlab #Script # Function
Facebook link: / stem.edu.94
Other Octave Tutorial Videos:
1. Getting Started for Absolute Beginners
KZread Link: • Octave Tutorial #1: Ge...
2. Variables for Absolute Beginners
KZread Link: • Octave Tutorial #2: Va...
3. Vectors for Absolute Beginners
KZread Link: • Octave Tutorial #3: Ve...
4. Matrices and Indices for Absolute Beginners
KZread Link: • Octave Tutorial #4: Ma...
5. Matrix Operations for Absolute Beginners
KZread Link: • Octave Tutorial #5: Ma...
6. Scatter and Line Plotting for Absolute Beginners
KZread Link: • Octave Tutorial #6: Sc...
7. First 5 Things to Do For Productive Working Environment
KZread Link: • Octave Tutorial #7: Fi...
8. Writing Scripts and Functions for Absolute Beginners
KZread Link: • Octave Tutorial #8: Wr...
9. Save/Load Variables in Workspace and Use Variable Editor for Absolute Beginners
KZread Link: • Octave Tutorial #9: Sa...
10. Plot different types of plots for Absolute Beginners
KZread Link: • Octave Tutorial #10: P...
11. Conditional Statements for Absolute Beginners (Letter Grade Assignment)
KZread Link: • Octave Tutorial #11: C...
12. For Loop Statements for Absolute Beginners (BMI Calculation)
KZread Link: • Octave Tutorial #12: F...
13. Big Data Analytic Basics
KZread Link: • Big Data Analytic Basi...
14. While Loop Statements for Absolute Beginners (Countdown Timer)
KZread Link: • Octave Tutorial #13: W...
15. Display Even or Odd Numbers Only
KZread Link: • Matlab/Octave Tutorial...
16. Plot Multiple Curves in Same Figure
KZread Link: • Matlab/Octave Tutorial...
17. Common Errors and How to Fix
KZread Link: • Octave Tutorial #14: W...
18. Learn GNU Octave in 1 hr 30 min
KZread Link: • Matlab Tutorial for Ab...
19. Solve Polynomial Equations
KZread Link: • Octave Tutorial #15: S...
Math Tutorial Videos:
Solve Linear Equations (2 Unknowns), 5 min Exam Prep!
KZread Link: • Solve Linear Equations...
Find Determinant of 3x3 Matrix (5 min Exam Prep)! Easy Visual Memory Included!
KZread Link: • Find Determinant of 3x...
How to Solve Systems of Linear Equations (3 Unknowns, 3 x 3 Matrix), 10 min Exam Prep!
KZread Link: • How to Solve Systems o...
Learn Sum of First N Numbers in 3 Min!
KZread Link: • Learn Sum of First N N...

Пікірлер: 24

  • @mr.stemedutv5514
    @mr.stemedutv55143 жыл бұрын

    Hope this tutorial video is useful for you who would like to learn Matlab and GNU Octave, and please let me know if you have any questions and comments! Corrections: 0:30 "r" (radius) in the diagram should be "d" (diameter). 12:09 "r" (radius) in the diagram should be "d" (diameter).

  • @ml_bowes
    @ml_bowes2 жыл бұрын

    Thank you so much for these tutorials, its helping me a ton in my class

  • @steephenpaul6564
    @steephenpaul65643 жыл бұрын

    Thank you sir, very much useful

  • @fernando2135
    @fernando21353 жыл бұрын

    It was very useful, thanks

  • @taha.al-dulaimi1461
    @taha.al-dulaimi1461 Жыл бұрын

    Thank you .

  • @muzzzculer
    @muzzzculer Жыл бұрын

    Thanks for doing that!

  • @IoTbyJacky
    @IoTbyJacky9 ай бұрын

    Thank​ you​ sir

  • @enriquefernandez6212
    @enriquefernandez6212 Жыл бұрын

    Very good

  • @ilyessbouabid6395
    @ilyessbouabid6395 Жыл бұрын

    thanks

  • @MathsLearningSpace
    @MathsLearningSpace3 жыл бұрын

    @9:50 This is the problem with Camtasia, if you use clip speed on a certain portion of time line it changes your voice. better to re record voice in those portions where you are using clip speed. This is suggestion for you. However, this is a great video. There is also one error @12:09 in figure radius r is shown wrong that is diameter.

  • @mr.stemedutv5514

    @mr.stemedutv5514

    3 жыл бұрын

    For the clip speed, I did not adjust my voice speed on purpose for fun :). Also, I think the formula for the surface area and volume of sphere are reasonable, please check here. Thanks for watching this video and making thoughtful comments.

  • @MathsLearningSpace

    @MathsLearningSpace

    3 жыл бұрын

    @@mr.stemedutv5514 At the very first I was having the same idea... this is for fun... Regarding formula it is correct but fin figure of circle r is representing circle but by human error you just shown diameter the circle as r. You are doing great dear....

  • @mr.stemedutv5514

    @mr.stemedutv5514

    3 жыл бұрын

    @@MathsLearningSpace Got it for the radius in the figure. It was a mistake. Thanks for caching it up.

  • @sabkascience
    @sabkascience3 жыл бұрын

    If I use any other name instead of fn_arearect.m, like rect.m will the program still run or we have to save the .m file using the same name as the function @10:21

  • @mr.stemedutv5514

    @mr.stemedutv5514

    3 жыл бұрын

    you can use any m file name, but you need to call it from the command window using the file name that you chose. hope this helps.

  • @gabriellopeslima6105
    @gabriellopeslima61052 жыл бұрын

    Great video!! One doubt, how can I create a function that receives some image and show the image?

  • @mr.stemedutv5514

    @mr.stemedutv5514

    2 жыл бұрын

    I think you can use imread() and imshow() functions. Hope this helps.

  • @zeferreira8805
    @zeferreira88052 жыл бұрын

    Hi, just one doubt, is it possible to define more than 1 function on one file. I've tried some things, and the function only works if it has the same name as the file.

  • @mr.stemedutv5514

    @mr.stemedutv5514

    2 жыл бұрын

    Hi, I guess you can find the answer for your question in this video. Hope this helps. Please feel free to ask any other questions.

  • @therisadamarla7722
    @therisadamarla77229 ай бұрын

    sir can please do a video how to connect api with octave and how to use api url in octave plzzzzzzzzzzzzzzzzzzzzzzzzz

  • @liutom8220
    @liutom82202 жыл бұрын

    Why when I typr enter when writing on the editor, the previous script will dissapear? and when I write in the second column, the first column is copying what i wrote on the second column?

  • @liutom8220

    @liutom8220

    2 жыл бұрын

    I don't know why my editor is operating differently than yours

  • @mr.stemedutv5514

    @mr.stemedutv5514

    2 жыл бұрын

    Sorry, I do not have a good answer for your question, since it never happens to me.

  • @mr.stemedutv5514

    @mr.stemedutv5514

    2 жыл бұрын

    Perhaps, you can uninstall the old version and reinstall the latest version 7.1.0. Hope this helps.