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
@mahmoodqasim62367 жыл бұрын
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.
@kavishshah55863 жыл бұрын
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
@fitzlellc35993 жыл бұрын
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.
@kavishshah55863 жыл бұрын
@@fitzlellc3599 👍🏻
@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.
@vangogo91752 жыл бұрын
how is the approx_sqrt() function near to build in function? I don't get that.
@quyenangcao57449 жыл бұрын
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
@disas73r8 жыл бұрын
+Quyền Đặng Cao You could match them by plotting the first, then typing >>hold on then plotting the second?
@priyasharay50899 жыл бұрын
MATLAB nobody likes a showoff :)
@SuperBayaz9 жыл бұрын
hi there, what about ' return'
@md.tanvirhossain45944 жыл бұрын
Use 'pomodoro' method to get rid of stress. - big fan of Family Guy
@saisupriyalakshmijs17767 жыл бұрын
approx_sqrt.m Need explanation from while till end
@umarmughal10876 жыл бұрын
Exactly
@seggetauli66446 жыл бұрын
Molto interessante, suggerisco anche il corso grautito di "Corsi Consulenze NPR", kzbin.info/www/bejne/pJSUq55meaZ9pJI
@tomasyoung17623 жыл бұрын
The normal prison similarly cheat because polo critically guard mid a living fire. panoramic, damaged class