Borrar filtros
Borrar filtros

Set values in a matrix to zero

1 visualización (últimos 30 días)
Rohan  Mehta
Rohan Mehta el 21 de Jun. de 2019
Comentada: madhan ravi el 21 de Jun. de 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 ?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by