Given variable g that contains a row vector of any size, assign to variable h the contents of g with the last element removed

1 visualización (últimos 30 días)
please help, thank you

Respuestas (1)

Murali Krishna
Murali Krishna el 5 de Jun. de 2015
Editada: Murali Krishna el 5 de Jun. de 2015
try this...
h=g(1:(length(g)-1));

Categorías

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