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 view (last 30 days)
please help, thank you

Answers (1)

Murali Krishna
Murali Krishna on 5 Jun 2015
Edited: Murali Krishna on 5 Jun 2015
try this...
h=g(1:(length(g)-1));

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!