开发者

MATLAB 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜