필터 지우기
필터 지우기

Plot of any equation using GUI

조회 수: 1 (최근 30일)
Md. Ashikur Rahman Any
Md. Ashikur Rahman Any 2021년 4월 21일
편집: Md. Ashikur Rahman Any 2021년 4월 21일
I want to made a plotter using GUI. For that purposes i tried to write the expression.Then converting this expression(string) into symbolic expression and plotting it.After that i tried the following code.
Basically i want to plot anytype of implicit and explicit equation.
But it didn't work properly.what to do?
% --- Executes on button press in Plott.
function Plott_Callback(hObject, eventdata, handles)
% hObject handle to Plott (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
strr=get(handles.screen,'string');
syms x y;
axes(handles.axes1);
x=0:0.1:10;
y=str2sym(strr);
fplot(y,[-10 20]);
guidata(hObject,handles);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by