Creating functions with certain inputs but no outputs
Mostrar comentarios más antiguos
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
Respuestas (1)
madhan ravi
el 27 de Sept. de 2020
doc *
doc +
doc -
doc /
doc function
1 comentario
madhan ravi
el 27 de Sept. de 2020
Follow the same for other operations.
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!