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.
Make the vector [1 2 3 4 5 6 7 8 9 10]
Test for balanced parentheses
Count from 0 to N^M in base N.
Dancing with wolves?
Cell Source Index
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