putting zero between sequence

1 次查看(过去 30 天)
reto panda
reto panda 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

请先登录,再进行评论。

类别

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