Ask user input symbolic variables for GUI application
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!