Error using plot Conversion to double from function_handle is not possible.
Mostra commenti meno recenti
i have been trying to figure out whats happening with my code. Im trying to make a Plotter with GUI but there is a problem when it compiles just exactly at the plot command line the code is the next one:
function pushbutton1_Callback(hObject, eventdata, handles)
y=str2func(get(handles.fdy, 'String'))
x=linspace(0,100,1000);
plot(x,y)
fdy: Is the callback from the edit text where you have to insert the function Example= sin(x) As simply as that, i dont really know whats the problem it shows "Error using plot Conversion to double from function_handle is not possible." i dont know if its a variable type problem maybe i have to use str2func, but i tried and i dont know. Please help me out
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!