필터 지우기
필터 지우기

Can We Define Binary Operations in MATLAB?

조회 수: 3 (최근 30일)
Sabri Çetin
Sabri Çetin 2016년 7월 2일
답변: the cyclist 2016년 7월 2일
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.

채택된 답변

the cyclist
the cyclist 2016년 7월 2일
Yes, you can overload functions.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by