Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私がこのデータを持っているとしましょう
my_data = [ 10 20 30 40; 0.1 0.7 0.4 0.3; 6 1 2 3; 2 5 4 2]; my_index = logical(my_data(4,:)==2);
'my_index'を使用してこの出力を提供する最も簡単な方法は何ですか
10.0000 40.0000 0.1000 0.3000 6.0000 3.0000 2.0000 2.0000
my_data(:,my_index)
しかし、これは非常に単純で、(バックグラウンドの)要件を満たしていないのではないかと疑っています...