Borrar filtros
Borrar filtros

Can We Define Binary Operations in MATLAB?

3 visualizaciones (últimos 30 días)
Sabri Çetin
Sabri Çetin el 2 de Jul. de 2016
Respondida: the cyclist el 2 de Jul. de 2016
In matlab, we can define functions of two variables, and the notation is generally like f(x1,x2).
What I mean by binary operations is not much different than functions of two variables, but the notation, the calling statement is different. For example addition is a function of two variables but we can call it by a + b for appropriate inputs instead of plus(a,b). Is that possible for user-defined functions?
Any kind of help is appreciated, thank you so much in advance.

Respuesta aceptada

the cyclist
the cyclist el 2 de Jul. de 2016
Yes, you can overload functions.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by