Replacing null value with NaN
5 次查看(过去 30 天)
显示 更早的评论
Hi
I have built a 4D cell (called B), and some of the matrixes included on it ( [11x6 single]) have null values (1e20) which I want to get rid of.
First I've tried this inside of my for cycle, where a and m are iterating:
B(B{1,1,a,m}>1e19) = NaN;
and, Matlab "complained" saying that "Conversion to cell from double is not possible."
Then I tried this: B(B>1e19) = NaN, and Matlab once again pointed out error saying "Undefined function 'eq' for input arguments of type 'cell'.".
Could anyone explain me, how can I replace null values by NaN, in a 4-D cell? I'de be VERY thankfull for help!
Sara
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!