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.
Tic Tac Toe FTW
Get the length of a given vector
How many monitors are connected ?
Replicate elements in vectors
Determine if input is a Narcissistic number
Construct a string from letters and counts
"Look and say" sequence
Create a recurrence matrix for a vector of data
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