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);
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.
Create One Large Eye of size N x N Quickly?
Rotate a Matrix
Getting the indices from a vector
Cell Counting: How Many Draws?
Largest Twin Primes
Construct a string from letters and counts
Create a recurrence matrix for a vector of data
"Look and say" sequence
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office