Creating functions with certain inputs but no outputs

1 回表示 (過去 30 日間)
Kalpha.mc
Kalpha.mc 2020 年 9 月 27 日
コメント済み: madhan ravi 2020 年 9 月 27 日
How to create a function called x with two inputs. Two variables x and y then display the sum, difference , product and quotient.
example two variables are 6 and 7
6+7 = 13
6-7 = -1
6*7 = 42
6/7 = 0.857

回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 27 日
doc *
doc +
doc -
doc /
doc function
  1 件のコメント
madhan ravi
madhan ravi 2020 年 9 月 27 日
Follow the same for other operations.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by