Creating functions with certain inputs but no outputs

1 次查看(过去 30 天)
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

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by