How can I make elements in a matrix NAN where they don't match that of another matrix?
1 次查看(过去 30 天)
显示 更早的评论
suppose I have a matrix
A = [1,2,NaN
4,5,6]
and
B = [12,3,4
4,5,67]
I want
C = [12,3,NaN
4,5,67]
How can I go about doing this?
1 个评论
Wanbin Song
2015-11-2
编辑:Wanbin Song
2015-11-2
What do you expect? How does the matrix C comes out? Please explain more
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!