Create a basic Base Converter using a Matlab m-file that adheres to the specified criteria for simplicity. Ensure the following requirements are met:
Function Name: simpleConv
Menu Options: Provide a menu allowing users to choose between converting Decimal to Binary or Decimal to Hexadecimal.
Input and Output:
Users should input a decimal number. The function should output the corresponding Binary number if the Binary conversion is selected. The function should output the corresponding Hexadecimal number if the Hexadecimal conversion is selected.
Refere the attachment for solution. Enjoy Learning !