Replacing Values of one matrix with another
2 views (last 30 days)
Show older comments
Kayla Washington
on 5 Nov 2021
Commented: Kayla Washington
on 5 Nov 2021
I'm trying to replace one Matrix values with NaNs from another vector in the same locations, but I keep getting getting the reverse. It puts NaNs where values are supposed and keeps the values where NaNs are supposed to show. My code is:
isn_east = find(~isnan(east));
VV=Reference_E;
>> VV(isn_east)=NaN;
east is the matrix where the NaNs are located. VV is matrix the i'm tryig to put NaNs in.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!