Forming a matrix
- From: "Dan Morse" <morse@xxxxxxxxxxxxx>
- Date: Fri, 20 Jan 2006 18:30:05 -0500
Right now I have section of code for creating a matrix,
U(MxN) from a vector A, (M*N in length):
k=1;
i=1;
while(i<ylength)
j=1;
while(j<xlength)
U(i,j) = A(k);
j=j+1;
k=k+1;
end
i=i+1;
end
Is there a shorter way to do this other than writing a separate
function file? I searched the help but couldn't determine a solution.
It just seems cumbersome.
Dan
.
- Follow-Ups:
- Re: Forming a matrix
- From: Matt Fig
- Re: Forming a matrix
- Prev by Date: mcc compilation error
- Next by Date: Find common values within two vectors
- Previous by thread: mcc compilation error
- Next by thread: Re: Forming a matrix
- Index(es):
Relevant Pages
|