Create a function that subtracts b from a if a and b are integers and adds them if they are floats.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers132
Suggested Problems
-
Construct an index vector from two input vectors in vectorized fashion
461 Solvers
-
Create a vector whose elements depend on the previous element
803 Solvers
-
Reverse the elements of an array
1136 Solvers
-
374 Solvers
-
Matlab Basics - y as a function of x
532 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Too many clues are given in the Solution Template.
Also, Problem Statement is inconsistent with Test Suite (and Solution Template). It should say: "Create a function that subtracts b from a" (not "a from b").
SHOULD BE SUBSTRACTS b FROM A
The problem description has been updated.