signum fuction with multiple input variables

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일

0 개 추천

If the set of v are the same size, then
y = sign([v1,v2,v3]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2019년 10월 12일

댓글:

2019년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by