Borrar filtros
Borrar filtros

How to ask use to enter values

2 visualizaciones (últimos 30 días)
Hussein Hasan Mohsen
Hussein Hasan Mohsen el 7 de Dic. de 2020
Comentada: Hussein Hasan Mohsen el 7 de Dic. de 2020
helllo everyone
I fail to create code that asked user to enter inputs and disply one output
steps
1- Ask user enter the 7 inputs
Enter value of H2
Enter value of CH4
until the last one
After user enter all value compare the answer with the limitation of ech input (limitation for each input shown in figure bellow) like limitation of H2 (0-100), CH4 (0-120) and so on....
the output diplay will be ( Ture if no one of input value more then the limitation)
( Faut if one or more more then the limitation)
if there any references...
  2 comentarios
KSSV
KSSV el 7 de Dic. de 2020
Read about input.
Hussein Hasan Mohsen
Hussein Hasan Mohsen el 7 de Dic. de 2020
input randam from user

Iniciar sesión para comentar.

Respuestas (1)

Setsuna Yuuki.
Setsuna Yuuki. el 7 de Dic. de 2020
Editada: Setsuna Yuuki. el 7 de Dic. de 2020
An example of input.
prompt = "Value ";
H2 = input(prompt);
CH4 = input(prompt);
xTable = table(H2,CH4)
xTable =
H2 CH4
__ ___
4 5
  1 comentario
Hussein Hasan Mohsen
Hussein Hasan Mohsen el 7 de Dic. de 2020
How about the output ether TRUE OR FAULT

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by