필터 지우기
필터 지우기

a{20,20}(3,1) ??

조회 수: 1 (최근 30일)
etcann
etcann 2012년 2월 18일
Hi,
Can I create a zero matrix of 20x20 of which element is a column vector of length 3? I was looking for something like a{20,20}(3,1) but it does not seems to be working! :( too bad!
Thanks in advance

답변 (1개)

TAB
TAB 2012년 2월 18일
Elem = zeros(3,1);
ValueCell = cell(20,20);
ValCell=cellfun(@(x)(Elem),ValCell,'UniformOutput', false)
:-)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by