how to remove a column from a character matrix?
Mostra commenti meno recenti
suppose
x= 1001
1001 (x is a character matrix)
i want y=100
100 (last column is removed)
Risposta accettata
Più risposte (1)
Guillaume
il 6 Dic 2016
You remove the last column of any matrix, regardless of what type of data it contains, even characters, the same way with:
yourmatrix(:, end) = [];
Unless what you call a character matrix is not a character matrix actually. A character matrix would be:
x = ['1001';'0110']; %for example
1 Commento
aditya kumar sahu
il 6 Dic 2016
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!