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

115 Solutions

71 Solvers

Last Solution submitted on Nov 13, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers71

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!