Azzera filtri
Azzera filtri

Set values in a matrix to zero

1 visualizzazione (ultimi 30 giorni)
Rohan  Mehta
Rohan Mehta il 21 Giu 2019
Commentato: madhan ravi il 21 Giu 2019
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 ?

Risposta accettata

madhan ravi
madhan ravi il 21 Giu 2019
data=[data;zeros(43,1)] % where data is of size 957 X 1
  1 Commento
madhan ravi
madhan ravi il 21 Giu 2019
Note: if your data is a row vector then just simply transpose

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by