signum fuction with multiple input variables

3 Ansichten (letzte 30 Tage)
Rajbir Singh
Rajbir Singh am 12 Okt. 2019
Kommentiert: Rajbir Singh am 15 Okt. 2019
how to define a signum fuction with multiples input vectors.
like, y = sign(v1, v2, v3......)
where v1, v2, v3..... are vectors
  1 Kommentar
John D'Errico
John D'Errico am 12 Okt. 2019
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Daniel M
Daniel M am 12 Okt. 2019
If the set of v are the same size, then
y = sign([v1,v2,v3]);

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by