How to put all input into one dialog box?

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Adding custom doc 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by