Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Search results for query: *

  1. naddie

    How to test and average the surrounding non-zeros elements

    Hi guys, Here is the problem: Say if I have a matrix that looks like: new_x = 0 0 0 0 0 0 0 **9.0000** 9.0000 0 0 4.0000 9.0000 **9.0000** 0 0 **8.3333** **8.0000** 0 0 0...
  2. naddie

    Matlab Prob: Replace any values in matrix

    Hi all, I am really new with matlab and would like some helps with matlab.. Here is the problem: Say if i have a 256 by 256 matrix. I would like to replace any values that are 'greater' or 'equal' to 10 with 'one' and name the rest as 'zero' i.e. (values <10).. How can I do it?? For example...
Back
Top