Question: Question 2 : MATLAB For and IF Applications Write a program in MATLAB / Octave to check whether your student id is divisible by 2

Question 2: MATLAB For and IF Applications
Write a program in MATLAB/Octave to check whether your student id is divisible by 2,3,4,5,
6, and 7. Your code should use only one for loop and only one conditional statement (if... else).
Please use 'frtintf' function to print the output. The output should look like this: (assuming
student id is 123456).
Please submit your Matlab/oc tave code for this part.
123456is divisible by2??
123456is divisible by3??
123456is divisible by4??
123456is not divisible by5??
123456is divisible by6??
123456is not divisible by7??
Question 2 : MATLAB For and IF Applications Write

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!