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.
Replace NaNs with the number that appears to its left in the row.
wait for me
Triangle Numbers Below N
Calculate the height of an object dropped from the sky
Create a recurrence matrix for a vector of data
Construct a string from letters and counts
"Look and say" sequence
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