Error using plot Conversion to double from function_handle is not possible.
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!