I have a matrix which contains 957 data in it and after that nothing, I want to make that data to be same uptill 957 element and add other 43 elements besides it with value 0 how to do it ?

 채택된 답변

madhan ravi
madhan ravi 2019년 6월 21일

2 개 추천

data=[data;zeros(43,1)] % where data is of size 957 X 1

댓글 수: 1

madhan ravi
madhan ravi 2019년 6월 21일
Note: if your data is a row vector then just simply transpose

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2019년 6월 21일

댓글:

2019년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by