|
From: | Carlo Rossi |
Subject: | create a vector and vector of matrix |
Date: | Wed, 13 May 2009 14:46:43 +0000 (GMT) |
Hello, I need to create a vector; this work but is there something more compact? repmat(0, length(A), 1) eg: 0 0 0 0 furthermore as I have to repeat the operation for 5 times, there is the way to do it in a loop as well: repmat(0, length(A0), 1) repmat(1, length(A1), 1) repmat(2, length(A2), 1) repmat(3, length(A3), 1) I mean: is it possible to create a vector of matrix indexes a vecot like this V = [A0 A1 A2 A3] and use V[i] to access to a matrix? thanks |
[Prev in Thread] | Current Thread | [Next in Thread] |