new to mesh2D, error msg

my first time running mesh2d. I entered the four nodes of a square into "node". Seems innocuous enough. But get error msg below. Any ideas out there? I have the mesh2d folder under the matlab folder. I thought matlab would search the disk for the function if it did not find it at first. maybe syntax? TY John
>> node=[0,0;0,1;1,1;1,0]
node =
0 0
0 1
1 1
1 0
>> [p,t]=mesh2d(node)
??? Undefined function or method 'mesh2d' for input arguments of type 'double'.

Answers (1)

Geoff Hayes
Geoff Hayes on 9 Oct 2014

0 votes

John - mesh2d isn't a standard MATLAB function, and is a function that you can obtain from the MATLAB File Exchange. Try Darren Engwirda's mesh2d submission. Make sure you review the comments at this link as at least one indicates a problem with the function tsearch needing to be replaced with tsearchn (the code is provided in the comment so make sure you copy that over to your downloaded version).

Categories

Tags

Asked:

on 9 Oct 2014

Edited:

on 16 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!