Перейти к содержимому

How to use for loop in MATLAB

Jeff Anderson Math

0:00 / 0:00

How to use for loop in MATLAB

2 397 просмотров · 5 л. назад
Jeff Anderson Math
2,11 тыс. подписчиков
2 397 просмотров · 5 л. назад
We explore for loops in MATLAB: 00:00 -Introduction 00:14 -For loop syntax 01:28 -Example 1: Display the value of loop index in each iteration 04:05 -Example 2: Add text to for loop with fprintf function 05:30 -Example 3: Use pause command to analyze and debug loops 07:29 -Example 4: Use random entries in row vector of index values 09:02 -Example 5: Use colon notation to define desired index values 10:13 -Recap: key features of for loop syntax 11:18 -Example 6: Learning to count by ones with for loops 12:42 -Example 7: Format loop body to analyze and debug loop body 15:47 -Example 8: Learning to count by twos with for loops 16:20 -Example 9: Learning to count by fours with for loops 17:05 -Example 10: Sum the first n numbers with a for loop 20:45 -Example 11: Sum the first n squares with a for loop 23:23 -Review of for loop syntax 24:41 -Community challenge: How do you know when to use for loops 25:04 -Conclusion