Sean Takai
2010-01-08 19:40:10 UTC
Hi all,
I know this is pretty simple but I can't get it to work right.
Say I have a matrix A = [1 2 3; 4 Inf 6; Inf 8 Inf]
and I want try to remove the Inf values from a given column, what would be the best way to do so while preserving the original number values?
I know about B = A(:,2) ~= Inf
B =
1
0
1
But is there a similar way to do the same while keeping the original values while also deleting the 0 completely?
Thanks for any help.
I know this is pretty simple but I can't get it to work right.
Say I have a matrix A = [1 2 3; 4 Inf 6; Inf 8 Inf]
and I want try to remove the Inf values from a given column, what would be the best way to do so while preserving the original number values?
I know about B = A(:,2) ~= Inf
B =
1
0
1
But is there a similar way to do the same while keeping the original values while also deleting the 0 completely?
Thanks for any help.