Write a MATLAB function named basic_calculator that accepts two input numbers, A and B, and returns four distinct outputs:
  1. The sum (A + B)
  2. The difference (A - B)
  3. The quotient (A / B)
  4. The product (A x B)

Solution Stats

37 Solutions

26 Solvers

Last Solution submitted on Jul 10, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers26

Suggested Problems

More from this Author30

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!