PDA

查看完整版本 : MATLAB除最后一个元素外的所有内容


poster
2019-12-14, 20:46
是否有MATLAB的简写

v( 1:length(v)-1 ) % everything except last element 在Python中,

v[ :-1 ] MATLAB是否有类似的速记形式?



回答:



v(1:end-1)

更多&回答... (https://stackoverflow.com/questions/5411335)