フィルターのクリア

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]);
  1 件のコメント
Rajbir Singh
Rajbir Singh 2019 年 10 月 15 日
Thanx for the help, it works

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by