Creating functions with certain inputs but no outputs

2 Ansichten (letzte 30 Tage)
Kalpha.mc
Kalpha.mc am 27 Sep. 2020
Kommentiert: madhan ravi am 27 Sep. 2020
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

Antworten (1)

madhan ravi
madhan ravi am 27 Sep. 2020
doc *
doc +
doc -
doc /
doc function

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by