필터 지우기
필터 지우기

signum fuction with multiple input variables

조회 수: 3 (최근 30일)
Rajbir Singh
Rajbir Singh 2019년 10월 12일
댓글: Rajbir Singh 2019년 10월 15일
how to define a signum fuction with multiples input vectors.
like, y = sign(v1, v2, v3......)
where v1, v2, v3..... are vectors
  댓글 수: 1
John D'Errico
John D'Errico 2019년 10월 12일
Since signum is only defined for one variable in general (MATLAB or not) what do you want to see for multiple inputs? Give a small example of what you would be looking for, with both the inputs and the outputs you would expect.

댓글을 달려면 로그인하십시오.

채택된 답변

Daniel M
Daniel M 2019년 10월 12일
If the set of v are the same size, then
y = sign([v1,v2,v3]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by