How to call multiple inputs for multiple variables.

19 次查看(过去 30 天)
I'm writing a simulation for an aircraft that requires initial values for x, y, and z. Code is currently x = input('initial x value); y = input('initial y value); z = input('initial z value);
How do I input all of these into the command window at once?

回答(2 个)

madhan ravi
madhan ravi 2018-10-29

Star Strider
Star Strider 2018-10-29
My favorite is the inputdlg (link) function.

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by