If I want to make every negative value inside a matrix equal to zero I would use the following code:
And If i wanted to make only one column negative values zero I'd use this:
n = 5;
MyMatrix( MyMatrix(:,n)<0, n ) = 0
The real issue is that now I have a 50x100 matrix where I need to apply the previous idea (make every negative value equal to zero) but within columns 70 to 80(range). This could be easily done with a loop, but I'm sure there is a way to work around it.