| 	
Prev: In Level 2 m-file s-function, can the dimension of vector Dwork be set dynamically? Next: Time shift and FFT 	
		 From: Bruno Luong on 8 Apr 2010 08:41 "vortse a" <sonoffeanor-remove(a)yahoo.com> wrote in message <hpkica$1ja$1(a)fred.mathworks.com>... > You can use triu on a logical matrix and avoid using nonzeros: > > >>B=A(triu(true(size(A)))) > > However this aggregates B columnwise. If this is unwanted, then there is some transposing to be done, but I was unable to conjure it. B = A.'; b = B(tril(true(size(B)))) Bruno 	
		 From: vortse a on 8 Apr 2010 11:48 So I guess there is no way to do it with an in-place computation, is there? 	
		 From: AlexHuber Huber on 9 Apr 2010 22:13 "vortse a" <sonoffeanor-remove(a)yahoo.com> wrote in message <hpktrm$msa$1(a)fred.mathworks.com>... > So I guess there is no way to do it with an in-place computation, is there? For me the solutions you guys found are already quite fine for me purpose! Thank you! 
		 First
 | 
Prev
 | 
 Pages: 1 2 Prev: In Level 2 m-file s-function, can the dimension of vector Dwork be set dynamically? Next: Time shift and FFT |