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
Show older comments
f=get(handles.entrada1,'string');
axes(handles.axes1);
x =-pi: 0.1: pi;
y = f;
plot (x, y);
Answers (1)
Azzi Abdelmalek
on 27 Mar 2013
Edited: Azzi Abdelmalek
on 27 Mar 2013
f is a string, use
y = str2double(f);
Categories
Find more on Dates and Time 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!