查看单个帖子
旧 2019-12-14, 20:46   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
帖子 MATLAB除最后一个元素外的所有内容

是否有MATLAB的简写

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

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



回答:



v(1:end-1)

更多&回答...
poster 当前离线   回复时引用此帖