Hello there!
I would like to assign a vector to a specific element of a cell array.
Say I have a vector v=(1 0 1)
My cell array is c, c={2,2, []} and I want it to be c={2,2,[1,0,1]}
Thanks in advance for your time!

 채택된 답변

James Tursa
James Tursa 2016년 6월 23일

0 개 추천

c{3} = v;

댓글 수: 1

Kike
Kike 2016년 6월 23일
thanks, that was easy, I was trying with num2cell and mat2cell! :S

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

제품

질문:

2016년 6월 23일

댓글:

2016년 6월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by