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

2 Ansichten (letzte 30 Tage)
please help, thank you

Antworten (1)

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

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by