iam trying to create directed and undirected graph,i used this code: s = [1 2 1 3]; t = [2 3 3 4]; w = [10 20 30 5]; G=graph(s,t,w); but i face this problem when compile code: Undefined function or method 'graph' for input arguments of type 'double'. Thanks

# MATLAB: Compilation error when using graph method.

compilationerrorgraphgraph theorymethods

###### Related Question

- Whenever I plot a graph in matlab 2010 it always gives error that “G = graph(s,t) ??? Undefined function or method ‘graph’ for input arguments of type ‘double’.” how can I resolve this
- I am creating a graph using graph function but it shows error. why so
- Create undirected or direct 3d graph
- C++ compilation error
- How to construct the g in matgraph for coloring graphs
- Matlab compilation inconsistancies

## Best Answer