A blog to help electrical engineers and students to learn electrical engineering topics. Basic Electrical Engineering, Power Systems, Electrical Machines, tec.. Now special course on MATLAB for Beginners.

Class

Class

Tuesday, November 22, 2016

MATLAB Programming - Loop Control Part 2



In this lecture we will discuss more about Loop control. - Switch – case commands - Nested lops - break command - continue command switch - case Command There is no conditional statement used in this looping structure. It choose the code to be executed based on value of scalar or string, not just true/false. Different codes can be executed based on the value of the scalar defined in the switch command. The codes are defined using...