Borrar filtros
Borrar filtros

How to put all input into one dialog box?

3 visualizaciones (últimos 30 días)
goodwin membreve
goodwin membreve el 28 de Oct. de 2020
Respondida: Cris LaPierre el 28 de Oct. de 2020
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

Respuestas (1)

Cris LaPierre
Cris LaPierre el 28 de Oct. de 2020
Take a look at the examples on the inputdlg documentation page.

Categorías

Más información sobre Adding custom doc en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by