Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能解释一下下面的代码吗?当大小 newRowB (1,12) 时,这段代码不能工作?
~any(diff([0;find(newRowB);12+1])>3));
谢谢之前
diff计算给定输入向量的连续项之间的差. 和
diff
find定位数组 X 中非零的元素
find