How to ask use to enter values

조회 수: 1 (최근 30일)
Hussein Hasan Mohsen
Hussein Hasan Mohsen 2020년 12월 7일
댓글: Hussein Hasan Mohsen 2020년 12월 7일
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
KSSV
KSSV 2020년 12월 7일
Read about input.
Hussein Hasan Mohsen
Hussein Hasan Mohsen 2020년 12월 7일
input randam from user

댓글을 달려면 로그인하십시오.

답변 (1개)

Setsuna Yuuki.
Setsuna Yuuki. 2020년 12월 7일
편집: Setsuna Yuuki. 2020년 12월 7일
An example of input.
prompt = "Value ";
H2 = input(prompt);
CH4 = input(prompt);
xTable = table(H2,CH4)
xTable =
H2 CH4
__ ___
4 5
  댓글 수: 1
Hussein Hasan Mohsen
Hussein Hasan Mohsen 2020년 12월 7일
How about the output ether TRUE OR FAULT

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by