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)
f=get(handles.entrada1,'string');
axes(handles.axes1);
x =-pi: 0.1: pi;
y = f;
plot (x, y);

Answers (1)

Azzi Abdelmalek
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 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!