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

조회 수: 3 (최근 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에서 Language Fundamentals에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by