Show diference between two signals
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have a telephone number save in a structure. This number is the correct number. In other structure i have a telephone number send and i want to compare the structures and show where the signals are diferent, i don`t want to show the complet signals, i want to show only the error if they are not equal.
Thanks
댓글 수: 6
Paulo Silva
2011년 7월 12일
The part you are interested in is the values vector but it shouldn't be 0 like you say, try
plot(signals.values)
and see what appears.
채택된 답변
Paulo Silva
2011년 7월 12일
Do something similar to this
a=[0 5 6 7 8]
b=[0 5 6 8 8]
if any(~(a==b)) %if any index is diferent show error
disp('The signals aren't equal')
end
a and b are diferent signals like the example you provided (ie. a=signals.values)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 DTMF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!