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

  Рет қаралды 8,528

Mr. STEM EDU TV

Mr. STEM EDU TV

Күн бұрын

Пікірлер: 15
@mr.stemedutv5514
@mr.stemedutv5514 3 жыл бұрын
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.
@Sipho.mdluli
@Sipho.mdluli 3 жыл бұрын
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.
@DivyanshDwivedi-d6u
@DivyanshDwivedi-d6u 8 ай бұрын
music 😮‍💨
@GhulamNabiDar
@GhulamNabiDar 3 жыл бұрын
indeed useful especially with a practical examples you take..............
@alexanderskusnov5119
@alexanderskusnov5119 11 ай бұрын
w ./ h^2 without loop
@nebuladus7850
@nebuladus7850 3 жыл бұрын
Thxsomuch👦🏽🙏🏾
@johndrofnus2131
@johndrofnus2131 3 жыл бұрын
good tutorilas
@boshrakarim5239
@boshrakarim5239 3 жыл бұрын
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. kzbin.info/www/bejne/i6SkioN8esiNsLc. Hope this helps.
@anibalignaciopardoherrera684
@anibalignaciopardoherrera684 2 жыл бұрын
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
Octave Tutorial #6: Scatter and Line Plotting for Absolute Beginners
18:31
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
Basics of Writing For Loops in MATLAB
11:07
SnugglyHappyMathTime
Рет қаралды 73 М.
Octave Tutorial #3: Vectors for Absolute Beginners
8:37
Mr. STEM EDU TV
Рет қаралды 26 М.
How To... Embed an if Statement in a for Loop in R #46
7:08
Eugene O'Loughlin
Рет қаралды 4,5 М.
For loop(repetitive execution) in gnu octave (part1)
12:11
iDEC MEDIA
Рет қаралды 1,2 М.
Octave Tutorial #8: Writing Scripts and Functions for Absolute Beginners
16:46
Octave Tutorial #1: Getting Started for Absolute Beginners
7:40
Mr. STEM EDU TV
Рет қаралды 73 М.
Octave Tutorials for and while Loops
5:31
Professor Adam Teaches
Рет қаралды 424
DA_Numpy_Day_9_Intro_Date_13_08_2024
1:51:06
Coding Analytics
Рет қаралды 28
Octave Tutorial #5 - Control Statements
14:05
DrapsTV
Рет қаралды 57 М.
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН