error finding in matrices
1 view (last 30 days)
Show older comments
i want to find errors in two complex valued matrices? how can i do that? pls help
1 Comment
Jan
on 26 Aug 2011
To clarify your problem, a small example of code or input and output values would be helpful.
Answers (1)
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]
Does this solve your question or did you mean something else?
0 Comments
See Also
Categories
Find more on Test and Measurement in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!