标签: matlab syntax
是否有
v( 1:length(v)-1 ) % everything except last element
在Python中,它的
v[ :-1 ]
MATLAB有类似的简写吗?
答案 0 :(得分:22)
v(1:end-1)