help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

n vectors of m rows from a m*n matrix


From: robyandfra
Subject: n vectors of m rows from a m*n matrix
Date: Sun, 10 Feb 2013 09:18:29 -0800 (PST)

Hi
i have a matrix of m*n dimension (m and n are variable and depend on the
previous part of the program).
I need to work on each column of the matrix.
how can a said to octave that it had to create:
vector1
vector2
vector3
.
.
.
vectorn
and keep them in the memory? Remember than n is variable...
I have to add members on each vector so i need them saparated..

i try in this way: example

t=1:1:8 - time:length(t)=n

A=[1,2,3,4,5,6,7,8;2,3,4,5,6,7,8,9]

for e=1:length(t)
        b=A(:,e)
end

but i get only one vector that is the last column of the matrix A.


SOS
bye




--
View this message in context: 
http://octave.1599824.n4.nabble.com/n-vectors-of-m-rows-from-a-m-n-matrix-tp4649721.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]