matlab如何实现两个矩阵的去同存异
이전 댓글 표시
A = [1 3 7; 6 4 2];
B = [1 3];两个矩阵怎么去同存异得到矩阵[6 4 2]
답변 (1개)
我猜你是要
setdiff(A,B)
但为啥A和B计算结果是642,7呢
카테고리
도움말 센터 및 File Exchange에서 MATLAB 快速入门에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!