开发者

MATLAB everything except last element

开发者 https://www.devze.com 2023-02-19 02:43 出处:网络
Is 开发者_StackOverflowthere a MATLAB shorthand for v( 1:length(v)-1 ) % everything except last element

Is 开发者_StackOverflowthere a MATLAB shorthand for

v( 1:length(v)-1 ) % everything except last element

In Python, its

v[ :-1 ]

Does MATLAB have a similar shorthand?


v(1:end-1)
0

精彩评论

暂无评论...
验证码 换一张
取 消