[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to check & insert max values into a matrix?
From: |
Robert A. Macy |
Subject: |
How to check & insert max values into a matrix? |
Date: |
Mon, 17 Jul 2006 09:06:40 -0700 |
Along the vein of replacing single statements for fortran
styled for loops:
Single statement to check and replace 0's ...
>> mymatrix(mymatrix<0)=0;
That I understand, but how to use a second matrix and do
the same thing entry by entry?
>> mymatrix( mymatrix .< secondmatrix ) .= secondmatrix;
doesn't work, should it?
[running the binary 2.1.50a on Win98]
- Robert -
- How to check & insert max values into a matrix?,
Robert A. Macy <=