Error using plot Conversion to double from function_handle is not possible.
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graphics Performance en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!