| MATLAB Central > MATLAB Newsreader > setting the matrix elements to zero when... |
|
|
|
Subject: setting the matrix elements to zero when... From: SM Date: 8 Feb, 2010 15:50:19 Message: 1 of 9 |
|
Hi, |
|
Subject: setting the matrix elements to zero when... From: Oleg Komarov Date: 8 Feb, 2010 17:21:04 Message: 2 of 9 |
|
"SM " |
|
Subject: setting the matrix elements to zero when... From: SM Date: 9 Feb, 2010 15:05:20 Message: 3 of 9 |
|
Thanx so much! |
|
Subject: setting the matrix elements to zero when... From: Oleg Komarov Date: 9 Feb, 2010 18:05:22 Message: 4 of 9 |
|
"SM " |
|
Subject: setting the matrix elements to zero when... From: Matt Fig Date: 9 Feb, 2010 19:43:05 Message: 5 of 9 |
|
Just as a note, you cold have made your loop method more efficient by skipping columns which were already overwritten, for any length. This might even be faster than the partial vectorization Oleg showed, especially when the matrix has few zeros. Here is one way to do it: |
|
Subject: setting the matrix elements to zero when... From: SM Date: 9 Feb, 2010 22:52:02 Message: 6 of 9 |
|
Hey Guys, |
|
Subject: setting the matrix elements to zero when... From: Oleg Komarov Date: 10 Feb, 2010 08:19:02 Message: 7 of 9 |
|
"SM " <khanmoradi@gmail.com> wrote in message <hksoui$3va$1@fred.mathworks.com>... |
|
Subject: setting the matrix elements to zero when... From: SM Date: 10 Feb, 2010 19:06:05 Message: 8 of 9 |
|
Thanx! and sorry for all these disturbing questions. May sound stupid, but I am not an expert in MATLAB programming. |
|
Subject: setting the matrix elements to zero when... From: SM Date: 10 Feb, 2010 19:44:20 Message: 9 of 9 |
|
I am really getting crazy...!!!! My brain is not functioning anymore and the deadline is approaching:(...Urgent helpppppppppp guysssssss!!!! |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
