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

114 Solutions

70 Solvers

Last Solution submitted on Oct 06, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers70

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!