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 次查看(过去 30 天)
please help, thank you

回答(1 个)

Murali Krishna
Murali Krishna 2015-6-5
编辑:Murali Krishna 2015-6-5
try this...
h=g(1:(length(g)-1));

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by