Borrar filtros
Borrar filtros

how to remove the zero from the first column and last row (4,1) to make it empty. it change my all values by subtracting.

2 visualizaciones (últimos 30 días)
s=[1;2;3];
s(1:4,2)=[1;2;3;4]
s =
1 1
2 2
3 3
0 4

Respuesta aceptada

Bhaskar R
Bhaskar R el 28 de Oct. de 2019
Not specified what subtraction operation here.
And you can't remove zero and put empty here this lead to non structure of the matrix. But you there are otherways to do that use cell array notations.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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