フィルターのクリア

Case instead of if-then?

5 ビュー (過去 30 日間)
David Pesetsky
David Pesetsky 2016 年 6 月 18 日
コメント済み: Star Strider 2016 年 6 月 18 日
Hi,
I have:
solveload=[0 0 0 'x' 'y' 'z'];
And need to determine only the position of the x, the y, and the z, when they could be anywhere in the vector, with 0's elsewhere. I'm finding I need a bunch of if-then's. It must be easier?
Thanks in advance :)
Dave

採用された回答

Star Strider
Star Strider 2016 年 6 月 18 日
There seem to be missing information.
What characterises ‘x’, ‘y’, and ‘z’?
What makes them so difficult to find? Range? Real/Complex? Something else?
  7 件のコメント
David Pesetsky
David Pesetsky 2016 年 6 月 18 日
Star Strider
Star Strider 2016 年 6 月 18 日
I’m glad you solved it, because I have no idea how to differentiate x, y, and z from your description.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReporting and Database Access についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by