MatLab Manual / Conditional Statements in Matlab Program

Program Name

Write a Matlab Program for Conditional Statements in Matlab Program.
Theory
Conditional branching statements are used to branch and execute group of statements 
based on a  condition. Conditional branching statements are of two types. They were
1. if statements.
2. Nested elseif statement. 
Program Code


Input and Output:

Output:
Number2 is big
n4 is big
Click for Matlab Online Compiler (Copy, Paste and Press Enter)


Home     Back