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

57 Solutions

39 Solvers

Last Solution submitted on Jul 14, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers39

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!