Question: Solve the following problems in MATLAB Decision making statements (t. Il-eise.es 1. Write a MATLAB program to accept two integers and check whether they are
Solve the following problems in MATLAB Decision making statements (t. Il-eise.es 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. Wehea 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 coordinato 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
Here are MATLAB programs for each of the requested problems 1 Check if two integers are equal or not matlab Accept two integers num1 inputEnter the first integer num2 inputEnter the second integer Che... View full answer
Get step-by-step solutions from verified subject matter experts
