Concatenating an empty numeric array to a cell array
이전 댓글 표시
Hi,
I need to add an empty numeric array at the end of a cell array mycellarray that contains numeric arrays. However when I execute : [mycellarray []] it does not concatenate the empty array to the end of mycellarray.
I find it curious since the same command works well with a non-empty array. It looks like matlab is treating [] as if it was {}...
For example :
mycellarray = {[1 2] [4 3 2]};
[mycellarray []]
gives {[1 2] [4 3 2]} as a result, instead of {[1 2] [4 3 2] []}, but :
mycellarray = {[1 2] [4 3 2]};
[mycellarray [3 4]]
returns {[1 2] [4 3 2] [3 4]} and not {[1 2] [4 3 2 3 4]}...
Can somebody help me with this ?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!