Difference between revisions of "MATLAB talk:Logical Masks"

From PrattWiki
Jump to navigation Jump to search
 
Line 2: Line 2:
 
When a logical mask is scanning a matrix of numbers, is it possible to ask the mask to check for two conditions? For example:
 
When a logical mask is scanning a matrix of numbers, is it possible to ask the mask to check for two conditions? For example:
 
Something like  
 
Something like  
variable = (condition && condition) .*value +...
+
 
 +
      variable = (condition && condition) .*value +...
 
           (condition) .....
 
           (condition) .....

Revision as of 03:58, 20 September 2012

Hi this is Everett Loving. When a logical mask is scanning a matrix of numbers, is it possible to ask the mask to check for two conditions? For example: Something like

      variable = (condition && condition) .*value +...
          (condition) .....