Create a buffer around a polygon in Matlab
That error implies that Matlab is trying to call the built in function_handle function, not the new one included with this code. Please make sure the new function_handle function is on your path.
Nice work. However, I keep on getting below error when I try to use the tool with Cartesian coordinates.
Error using function_handle
Too many output arguments.
Error in bufferm2 (line 182)
vectorsToGPC = function_handle(v2gpcpath);
Error in Main_Prog_1 (line 154)
[xb,yb] = bufferm2('xy',xr,yr,1,'in')
will you be help to solve this ?
After some modifications works perfect with GK4 :)
Doesn't work with GK-coordinates (Cartesian). My output polygon is the same as input.
Works flawlessly. Thanks for modifying the code to read Cartesian co-ordinates.
Linked to GitHub repository
Fixed a bug in input checks so input can be either row or column vectors. Also updates internal plot checks to plot in cartesian coordinates so can be used to check both geographic and x-y input.
Added ability to work in cartesian coordinates rather than geographic space; updated description and example on webpage.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.