How to delete spaces and '[ ', ']' characters from all data array string cells?
이전 댓글 표시
I need to remove the spaces and '[', ']' characters from the cells of a data array, I have try with the cellfun function and with:
a(a(1,1)== '[')='' %%where 'a' is the matrix, this case only for the first cell and '[' character
But is not working, How could be done?
Thank you in advance,
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2013년 7월 15일
a={'',1 ,[],'22'}
a(cellfun('isempty',a))=[]
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!