フィルターのクリア

How to delete a row by the last column variable

7 ビュー (過去 30 日間)
António
António 2015 年 1 月 7 日
コメント済み: António 2015 年 1 月 7 日
I have a table with this data:
if true
% code
end
'João' 'Santos' 'Funcionário' 32132 123412345 'F32132'
'Antonio' 'Vidigal' 'Aluno' 12345 212232113 'A12345'
'Marta' 'Roque' 'Aluno' 38666 916777212 'A38666'
'Francisco' 'Oliveira' 'Aluno' 46969 966969698 'A46969'
This is the table were the users data is stored for a program for controllind a keychain. How can i delete a row by using the last variable?

採用された回答

Sean de Wolski
Sean de Wolski 2015 年 1 月 7 日
x(strcmp(x(:,end),'F32132'),:) = [];
x of the rows with last column in x equal to 'F32132' set all columns to empty.
  1 件のコメント
António
António 2015 年 1 月 7 日
This works! Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Preprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by