Octave Tutorial #12: For Loop Statements for Absolute Beginners (BMI Calculation)

Matlab/Octave tutorial for for loop statements 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
1:37 - Why loop statements?
2:53 - How to use for loop statements?
5:46 - Calculate BMI
8:55 - Display BMI categories
#Octave #Matlab #ForLoopStatement
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...

Пікірлер: 15

  • @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!

  • @boshrakarim5239

    @boshrakarim5239

    3 жыл бұрын

    (a) Use for-end loops to create a 5*5 matrix in which the value of each element is the difference of its cubic indices (i.e. the cubic row number subtract the cubic column number of the element). For example, the value of element A(3,4) is 3^3 - 4^3 = -37). Show the script file and the result of the matrix A. (b) Use for-end loops and if-end to count (1) how many elements in the above matrix A have the value equal to zero, (2) how many elements in the above matrix A have the positive value, and (3) how many elements in the above matrix A have the negative value. Show the script file and the total number of counted elements in above three cases.

  • @johndrofnus2131
    @johndrofnus21313 жыл бұрын

    good tutorilas

  • @nebuladus7850
    @nebuladus78503 жыл бұрын

    Thxsomuch👦🏽🙏🏾

  • @GhulamNabiDar
    @GhulamNabiDar3 жыл бұрын

    indeed useful especially with a practical examples you take..............

  • @alexanderskusnov5119

    @alexanderskusnov5119

    9 ай бұрын

    w ./ h^2 without loop

  • @Sipho.mdluli
    @Sipho.mdluli3 жыл бұрын

    ANYONE PLEASE TELL ME HOW TO ROUND UP TO TWO DECIMAL PLACE

  • @mr.stemedutv5514

    @mr.stemedutv5514

    3 жыл бұрын

    A couple of different options. 1) use built-in "round function" in Matlab, for example, type "round(pi,2)" to round up the constant "pi" to 2 decimal place. 2) use the built-in function "fprintf", for example, type "fprintf('%.2f ',pi)". Hope this helps.

  • @boshrakarim5239
    @boshrakarim52393 жыл бұрын

    Could you help me to solve part (b) for this problem?: (a) Use for-end loops to create a 5*5 matrix in which the value of each element is the difference of its cubic indices (i.e. the cubic row number subtract the cubic column number of the element). For example, the value of element A(3,4) is 3^3 - 4^3 = -37). Show the script file and the result of the matrix A. (b) Use for-end loops and if-end to count (1) how many elements in the above matrix A have the value equal to zero, (2) how many elements in the above matrix A have the positive value, and (3) how many elements in the above matrix A have the negative value. Show the script file and the total number of counted elements in above three cases.

  • @mr.stemedutv5514

    @mr.stemedutv5514

    3 жыл бұрын

    Hi Boshra, I made another video to answer your question here. kzread.info/dash/bejne/h6d1u7J_dcbAqrg.html. Hope this helps.

  • @anibalignaciopardoherrera684
    @anibalignaciopardoherrera6842 жыл бұрын

    and how can i stop a loop plis help

  • @mr.stemedutv5514

    @mr.stemedutv5514

    2 жыл бұрын

    please hit ctrl+c stop the infinite loop.

  • @anibalignaciopardoherrera684

    @anibalignaciopardoherrera684

    2 жыл бұрын

    @@mr.stemedutv5514 thks i am goin to try it now :3

  • @user-qv7du1tg4y
    @user-qv7du1tg4y5 ай бұрын

    music 😮‍💨

Келесі