How to put all input into one dialog box?

조회 수: 2 (최근 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 CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by