Set values in a matrix to zero

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

更多回答(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