Hi I need to graph functions like sin (x) and cos (x) but I get matlab fails let me try it and numstr2 str2num and does not work please
1 view (last 30 days)
Show older comments
f=get(handles.entrada1,'string');
axes(handles.axes1);
x =-pi: 0.1: pi;
y = f;
plot (x, y);
0 Comments
Answers (1)
Azzi Abdelmalek
on 27 Mar 2013
Edited: Azzi Abdelmalek
on 27 Mar 2013
f is a string, use
y = str2double(f);
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!