필터 지우기
필터 지우기

Ask user input symbolic variables for GUI application

조회 수: 1 (최근 30일)
Kamuran
Kamuran 2016년 1월 3일
편집: Kamuran 2016년 1월 3일
I am creating a simple GUI . In one part (for the user who has symbolic toolbox) to input a symbolic variable and function. So when you are writing
if true
syms x F % want to be able to ask user input x,y,z etc
F=get(handles.input,'String')
Sym_Int=eval(int(F,x,L,R)); % I put eval there because some funny reason when
% sin(x) I get (L=0, R=1) 1-cos(1) not 0.4596..
set(handles.result,'String',Sym_Int)
end
For that I have a edit box where I am asking user input the variable "x" or whatever they want. According to that I need to update syms ? F=sin(?)
is there a way of doing that?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by