フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Removing rows in a vector

1 回表示 (過去 30 日間)
Adrienne
Adrienne 2014 年 5 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
So far this is my code and it correctly identifies the rows of the cells that needs to be removed: However the second line does not work, can anyone help me make it work?
if true
failed= find ((JT_S_TN(:,2)==5) | (JT_S_TN(:,2)==0));
% Finds the rows which was a faulty jump trial
corrected = removeTerms(JT_S_TN,'ind',failed); % Copies jumptypes into a new array, without the removed rows end

回答 (1 件)

dpb
dpb 2014 年 5 月 18 日
Tutorial info -- Do NOT put blank lines in code; as you see it reverts to word wrap instead of code formatting. As previously noted, to enter code, put two blanks in front of the first line in the new paragraph.
That aside, what is removeTerms?; I don't recognize it as basic Matlab function.
If JT_S_TN is your data array, simply write
correct=JT_S_TN(~failed,:); % extract those not failed
  2 件のコメント
Adrienne
Adrienne 2014 年 5 月 18 日
it was originally mean to use removerows as a function but it would not do anything
dpb
dpb 2014 年 5 月 18 日
I don't recognize removerows either?
Meanwhile, what's wrong w/ the Answer?

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by