필터 지우기
필터 지우기

Insert zero columns in matrices inside a cell array

조회 수: 3 (최근 30일)
Melody Lyu
Melody Lyu 2020년 2월 11일
댓글: Melody Lyu 2020년 2월 11일
I have matrices inside the 23x1 cell that looks like this:
30x28 double
30x28 double
30x30 double
30x29 double
30x30 double
...
How do I add columns with zero at the end of the matrices so make all all of them 30x30?

채택된 답변

Stephen23
Stephen23 2020년 2월 11일
Where C is your cell array:
for k = 1:numel(C)
C{k}(:,end+1:30) = 0;
end

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by