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 ?

 Akzeptierte Antwort

madhan ravi
madhan ravi am 21 Jun. 2019

2 Stimmen

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

1 Kommentar

madhan ravi
madhan ravi am 21 Jun. 2019
Note: if your data is a row vector then just simply transpose

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by