dialog box for coefficients

2 views (last 30 days)
Cédric
Cédric on 10 Dec 2014
Commented: Geoff Hayes on 11 Dec 2014
Hi,
I have a problem and I can't fixe it. I am a beginner in Matlab and I would to take the coefficients of adifferential equation. I wanted to use this method
prompt = {'Enter the order of the differential equation'};
dlg_title = 'Input';
num_lines = 1;
def = {'6'};
answer = inputdlg(prompt,dlg_title,num_lines,def);
order = str2num(answer{1});
prompt = {'Enter the first','Enter the second :'...};
...
Anybody have another better idea and which can work ?
Thank you very much
Cédric
  1 Comment
Geoff Hayes
Geoff Hayes on 11 Dec 2014
You could try to create a GUI which has edit text fields/controls that the user could use to type in some values. Once all data has been entered, a Calculate button could be pressed to do whatever work needs to be done.

Sign in to comment.

Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!