Introduction To MATLAB 3
Introduction To MATLAB 3
Part 4: Loops
Why loops?
Logical expression (< , <= , > , >= , == )
Usage of For and While loops
Part 5: Functions
Why Functions?
How to define the Fucntion (format)
Using the Function in the main code
Step 1. Declare the number set from the user defined input (a = [1 3 8 6 10 5 …])
Step 2. Write a Function to find all the factors of a given number
Step 3. Use this function to get the factors for all the numbers in the set using a loop
Step 4. Tabulate the data and print it