I'd like to include the test case listed below, but I'm stumped as to why it doesn't work:
%%
x1 = [ 1 2 3 ]
x2 = [ 10 20 ]
y_correct = [9 19; 8 18; 7 17]
y_actual = gridit(@minus, x1, x2);
assert(isequal(y_actual, y_correct));
Alex, I believe it is because the 'minus' function requires two input arguments. The test cases and the example use functions that accept a single input argument. Hope that helps.
random picture with random colours
138 Solvers
Rosenbrock's Banana Function and its derivatives
121 Solvers
249 Solvers
Remove white space from the string
170 Solvers
Find Index of maximum Value and maximum Value of a vector
146 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!