Question: Solve the following problems in MATLAB Decision making statements dt. Il-essels 1. Write a MATLAB program to accept two integers and check whether they are

 Solve the following problems in MATLAB Decision making statements dt. Il-essels

Solve the following problems in MATLAB Decision making statements dt. Il-essels 1. Write a MATLAB program to accept two integers and check whether they are equal or not. 2. Write a MATLAB program to check whether a given number is even or odd 3. Write a MATLAB program to check whether a given number is positive or negative 4. Write a MATLAB program to find whether a given year is a leap year or not 5. Write a MATLAB program to read the age of a candidate and determine whether it is eligible for casting his her own vote. 6. Write a MATLAB program to accept the height of a person in centimeter and categorize the person according to their height Perteight = 150.0 and PerHeight = 165.0 and Perhieight = 1950- "The person is taller otherwise Abnormal height 7. Write a MATLAB program to accept a coordinate point in a XY coordinate system and determine in which quadrant the coordinate point les Switch-Case 8. Write a MATLAB program in to read any Month Number in integer and display Month name in the word using switch-case 9. Write a MATLAB program using switch case to find 1. Area of a circle 2. Area of a rectangle 3. Area of a triangle 10. Write a MATLAB program using switch case to accept a grade and display the equivalent description: E Excellent V Very Good G Good A Average F Fail

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 Databases Questions!