Lesson 6.2 while-loops in MATLAB

  Рет қаралды 50,802

Fitzle LLC

Fitzle LLC

Күн бұрын

Пікірлер: 16
@iqhamad6368
@iqhamad6368 11 ай бұрын
You are an excellent teacher, I never saw a teacher like you. I never find a teacher in my life like you are. Great respect and salute from Pakistan
@mahmoodqasim6236
@mahmoodqasim6236 7 жыл бұрын
This is the first time that I know about the difference between for and while loops. When I was study in the college, I thought them the same and thinking why we use for, while and do while...! Thank you very much professor. This is the best MATLAB MOOC ever.
@kavishshah5586
@kavishshah5586 3 жыл бұрын
PLEASE CORRECT ME IF I AM WRONG • ONE OF THE MAIN THINGS WE NEED TO TAKE CARE WHILE DIFFERENTIATING BETWEEN THE FOR LOOPS AND WHILE LOOPS IS THAT  IN FOR LOOPS WE CANNOT CHANGE THE VALUE OF VARIABLES OF THE LOOP INDEX FROM THE BODY STATEMENTS. BUT IT IS NOT THE CASE WITH WHILE LOOPS. YOU CAN CHANGE THE VALUES OF VARIABLES THAT SERVE AS CONDITION OF WHILE LOOP
@fitzlellc3599
@fitzlellc3599 3 жыл бұрын
You can change the loop index in a for-loop, but you should not and it is temporary anyways :-) . The main difference is that a for loop has a fixed number of iterations, while a while loop does not.
@kavishshah5586
@kavishshah5586 3 жыл бұрын
@@fitzlellc3599 👍🏻
@xlvii6994
@xlvii6994 Жыл бұрын
somebody correct me please! I've gone over the irritation of square root of 2 and the only way I've got each value of the function while using a calculator it was if I used y=2 and squared it than subtracted the x which is equal to 2.
@vangogo9175
@vangogo9175 2 жыл бұрын
how is the approx_sqrt() function near to build in function? I don't get that.
@quyenangcao5744
@quyenangcao5744 9 жыл бұрын
hi, I have a exercise, find the index of a given value belonged to a function( for example, s=sin(t)), I made it with while-loop, easily, but I don't know how to match them.( because the function is symmetric, so there're 2 indeces for one value, I have a low_index function and high_index function.) can anyone tell me how I can match them ? here are my functions :( I eased my original problem) function hl=cal_lowf(slow) t=0:0.001:2*pi; s=sin(t); [smax f0]=max(s); f1=f0; while smax>=slow f1=f1-1; smax=s(f1); end ------------------------------------------------------- function hh=cal_highf(shigh) t=0:0.001:2*pi; s=sin(t); [smax f0]=max(s); f=f0; while smax>=shigh f=f+1; smax=s(f); end
@disas73r
@disas73r 8 жыл бұрын
+Quyền Đặng Cao You could match them by plotting the first, then typing >>hold on then plotting the second?
@priyasharay5089
@priyasharay5089 9 жыл бұрын
MATLAB nobody likes a showoff :)
@SuperBayaz
@SuperBayaz 9 жыл бұрын
hi there, what about ' return'
@md.tanvirhossain4594
@md.tanvirhossain4594 4 жыл бұрын
Use 'pomodoro' method to get rid of stress. - big fan of Family Guy
@saisupriyalakshmijs1776
@saisupriyalakshmijs1776 7 жыл бұрын
approx_sqrt.m Need explanation from while till end
@umarmughal1087
@umarmughal1087 6 жыл бұрын
Exactly
@seggetauli6644
@seggetauli6644 6 жыл бұрын
Molto interessante, suggerisco anche il corso grautito di "Corsi Consulenze NPR", kzbin.info/www/bejne/pJSUq55meaZ9pJI
@tomasyoung1762
@tomasyoung1762 3 жыл бұрын
The normal prison similarly cheat because polo critically guard mid a living fire. panoramic, damaged class
Lesson 6.3: Break-statement in MATLAB
29:32
Fitzle LLC
Рет қаралды 34 М.
Lesson 6.1 for-loops in MATLAB
36:51
Fitzle LLC
Рет қаралды 133 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 33 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 16 МЛН
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 40 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 33 МЛН
"While Loops" and "For Loops" in MATLAB
9:24
James Smith
Рет қаралды 21 М.
Lesson 5.1: Selection (Branching) in MATLAB
11:54
Fitzle LLC
Рет қаралды 51 М.
Lesson 4.5: Debugging
22:18
Fitzle LLC
Рет қаралды 44 М.
you will never ask about pointers again after watching this video
8:03
11.1 For loop in MATLAB
31:29
Salem ibrahim
Рет қаралды 870
Lesson 3.2: Function Input/Output
22:16
Fitzle LLC
Рет қаралды 115 М.
While Loop with Indexing
15:05
SnugglyHappyMathTime
Рет қаралды 8 М.
How to: Work at Google - Example Coding/Engineering Interview
24:02
Life at Google
Рет қаралды 7 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 33 МЛН