My code runs fine on my local machine, but I get error messages when I try it here.
Error using compose (line 85) First argument must be a string array, character vector, or cell array of character vectors. Error in TestPoint1 (line 3) h = compose(f,g);
To the creator of this problem: please rename this function in your test suite. "Compose" is already a built-in MATLAB function.
Changed the function name to composeFcn to avoid clashing with the compose built-in function. Let me know if you're still having trouble!
I guess the name needed changing, but be aware that if we ever re-score old entries, everyone who passed before the name change will now fail, since they will now be calling the wrong function.
Thanks, David Hruska!
Swap the first and last columns
12678 Solvers
Which values occur exactly three times?
3835 Solvers
1056 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1032 Solvers
Create a function handle that reverses the input arguments of another function handle
124 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!