http://goo.gl/y22ENW for more FREE video tutorials covering MATLAB Programming
This video demonstrates an example of creating function that can call to keep getting the user input until a valid value has been entered as input. At first, the video clears the concept on upper & lower bound and then defines the function introducing string variables that will pop up when the created function will be called in the command window. Next, the video incorporates the necessary logics & conditional statements using ‘While’ loops inside the function explaining all the facts in details.
Moving on, the video runs the function and verifies the outputs by giving different inputs. Later, the video shows how to use ‘If’ & ‘Else’ statement inside the function so that the function when called at command window can inevitably rearrange the lower & upper bound values as per their numerical weight and consequently works by calling to keep getting the user input until a valid value has been entered as input. Understanding this example will help to learn the uses of loop properly in creating different functions to make the programming task much easier in MATLAB.
Sur cette page du site, vous pouvez voir la vidéo en ligne MATLAB: Input Loop Function durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Spoon Feed Me 31 mars 2015, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,778 fois et il a aimé 1 téléspectateurs. Bon visionnage!