How to put all input into one dialog box?

1 回表示 (過去 30 日間)
goodwin membreve
goodwin membreve 2020 年 10 月 28 日
回答済み: Cris LaPierre 2020 年 10 月 28 日
eqprompt='Enter Equation (e.g. 2*x^2+4*x+9):';
equation=inputdlg(eqprompt);
eq=str2sym(equation);
syms(symvar(eq));
varprompt='With Respect to Variable:';
var=inputdlg(varprompt);
k=diff(str2sym(equation),var);
disp(k)
I want to combine the two questions into one dialog box and still perform the operation

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 10 月 28 日
Take a look at the examples on the inputdlg documentation page.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by