use of eval
7 views (last 30 days)
I am trying to use evalfunction but are having a hard time:
>> plots=[3 4 6 1]
3 4 6 1
>> whatplot=input('type type of graph: ','s')
type type of graph: bar
??? Index exceeds matrix dimensions.
why wont it evaluate it to a graph with bars?