f



how to extract matrix diagonals

I wanted to create a matrix A from other matrix B using some of its
dagonals. I used spdiags() mentioned at page:
 <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spdiags.html>
I used this kind of instruction :
A = spdiags(B,-1:2,A)
I have to do this operation thousands of times in my appln and time
is a critical factor for me, i m looking out for some alternative to
it.

can any one suggest some alternate?
0
5/22/2007 1:04:32 PM
comp.soft-sys.matlab 211266 articles. 19 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
227 Views

Similar Articles

[PageSpeed] 4

Reply: