Clear Filters
Clear Filters

error finding in matrices

1 view (last 30 days)
shweta shah
shweta shah on 26 Aug 2011
i want to find errors in two complex valued matrices? how can i do that? pls help
  1 Comment
Jan
Jan on 26 Aug 2011
To clarify your problem, a small example of code or input and output values would be helpful.

Sign in to comment.

Answers (1)

Jan
Jan on 26 Aug 2011
Matrices cannot have errors. They contain just values.
I guess, that you want to find the differences between two matrices:
a = rand(3,3) + i*rand(3,3);
b = a;
b([1,3,5]) = rand(1,3) + i*rand(1,3);
find(a ~= b)
% >> [1, 3, 5]
Then FIND replies the linear indices - see SUB2IND and IND2SUB.
Does this solve your question or did you mean something else?

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!