MATLAB Answers

0

Removing square brackets from cell array

Latest activity Edited by madhan ravi
on 11 Nov 2018 at 5:31
I have cell array a = {'[0' ; '[1' ; '[10'}
I need to need remove the square bracket from cell array
my new cell array should be a = {0 ; 1 ; 10}
how can i do this?
Thank you

  0 Comments

Sign in to comment.

1 Answer

Answer by Purushottama Rao on 7 May 2015
Edited by madhan ravi
on 11 Nov 2018 at 5:31
 Accepted Answer

a=strrep(a,char(91),'')
use this

  0 Comments

Sign in to comment.