MATLAB Answers

Two identical matrices (except different order in rows but should not be the problem) but assertion is failed and can find the difference between them.

2 views (last 30 days)
Nataliya Perevoshchikova
Nataliya Perevoshchikova on 30 Apr 2019
Two identical matrices (except different order in rows but should not be the problem) but assertion is failed and can find the difference between them.
assert( isequal(V_tet(ind2_tet,:),V_SLIL_Scaphoid(ind2,:)));
Assertion failed.
>> setdiff(V_tet(ind2_tet,:),V_SLIL_Scaphoid(ind2,:),'rows')
ans =
1.6512 8.5048 -643.9189
1.9910 7.6089 -648.4944
2.6352 8.3425 -647.2589
3.3272 8.9307 -646.0983
>> V_tet(ind2_tet,:)
ans =
1.6512 8.5048 -643.9189
2.4921 8.5606 -643.3268
3.2766 9.0152 -643.5155
3.8822 9.2537 -644.0964
4.0628 9.2014 -645.3088
3.3272 8.9307 -646.0983
2.6352 8.3425 -647.2589
1.9910 7.6089 -648.4944
1.6324 7.7218 -647.4241
1.2874 7.6893 -646.3689
1.2339 8.1356 -645.4689
1.3804 8.4279 -644.6217
1.6512 8.5048 -643.9189
>> V_SLIL_Scaphoid(ind2,:)
ans =
1.6512 8.5048 -643.9189
1.3804 8.4279 -644.6217
1.2339 8.1356 -645.4689
1.2874 7.6893 -646.3689
1.6324 7.7218 -647.4241
1.9910 7.6089 -648.4944
2.6352 8.3425 -647.2589
3.3272 8.9307 -646.0983
4.0628 9.2014 -645.3088
3.8822 9.2537 -644.0964
3.2766 9.0152 -643.5155
2.4921 8.5606 -643.3268
1.6512 8.5048 -643.9189

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!