changes_in_columns = diff(A,1,1)
finding a change in a matrix
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a matrix in which each column is usually constant but sometimes the value changes. Is there a way to figure out where the change occurs without running loops? for example A=[ 1 2 3 4 5; 1 2 3 4 5; 1 2 2 4 5; 1 2 2 4 5]
is it possible to compute that observation A(3,3) has changed?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!