What I am trying to do is that when I put into "Edit text" (called: funkcia_edit
) some function it will draw me graf to that function. Here is picture what I am trying to do, as you can see I have declared variables X and Y where Y is standing for funkcia_edit
= x.^2
and then I want to plot(x,y). Can any one help me how to make it work?
Thanks
You can also use ezplot
:
ezplot(get(hObject,'String'));