Monday, April 5, 2010

Matlab矩陣的index檢查

給為未來的裕翔

如果現在有個矩陣A存1:512這些值

但我的範圍上限是500

那我可以A(A>500) = []

藉此把不在範圍內的index拿掉

No comments:

Post a Comment