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 Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by