putting zero between sequence

조회 수: 1 (최근 30일)
reto panda
reto panda 2020년 5월 31일
댓글: madhan ravi 2020년 5월 31일
I have "x" with length 7400 . I want to put zeros between this sequnce to get "y" with length 9200 . how can I do this?
x=[1:1:7400]

답변 (1개)

madhan ravi
madhan ravi 2020년 5월 31일
y = [x, zeros(1, 92e2 - 74e2)]
  댓글 수: 5
reto panda
reto panda 2020년 5월 31일
this is not true. zeros all are together in y.
but Ii found the answer myself
so thanks anyway
madhan ravi
madhan ravi 2020년 5월 31일
Huh? Post your answer.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by