필터 지우기
필터 지우기

Set values in a matrix to zero

조회 수: 1 (최근 30일)
Rohan  Mehta
Rohan Mehta 2019년 6월 21일
댓글: madhan ravi 2019년 6월 21일
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일
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개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by