Matrix of matrix
First of all, I apologize for my English, so please be indulgent with me if my sentences are not grammatically correct.
I have some trouble with MATLAB.
I have some data in txt files that I catch like that :
MFS93A1 = textread('Z:/Fichiers/MFS93.A1.txt','','headerlines',1);
MFS93B1 = textread('Z:/Fichiers/MFS93.B1.txt','','headerlines',1);
MFM77A1 = textread('Z:/Fichiers/MFM77.A1.txt','','headerlines',1);
MFM77C1 = textread('Z:/Fichiers/MFM77.C1.txt','','headerlines',1);
Then, in or...matrix in a matrix
I want to put a matrix that is 128X128 in a matrix that is 512X512 ( ones(512) ).
what I want to do is to have the white image and above to put the second image ( a letter, A for example).
I cant multiply cause they dont have the same dimensions.
thanks in advance
"th " <THOMITSU@YAHOO.COM> wrote in message <email@example.com>...
> hallo there.
> I want to put a matrix that is 128X128 in a matrix that is 512X512 ( ones(512) ).
> what I want to do is to have the white image and above ...matrix in matrix (?)
Hi, I need help!
I want to construct a matrix 10x10 where every element is a matrix
After, I need to extract the ?x2 matrix by the 10x10.
how to make that?
> Hi, I need help!
> I want to construct a matrix 10x10 where every element is a matrix
> After, I need to extract the ?x2 matrix by the 10x10.
> how to make that?
have a look at cell arrays. they provide the possibility to store
arbitrary data in an array like fashion.
Michael Wild wrote:
> mirus wrote:
>> Hi, I need help!
>> I want to constru...matrix with matrix for each element
Hi, I am trying to create a matrix which has a matrix as
each element e.g.:
I then get this message which is understandable:
??? In an assignment A(I) = B, the number of elements in B and
I must be the same.
Is there a way to do this though?
Thanks in advance.
"Dave Brackett" <firstname.lastname@example.org> wrote in message
> Hi, I am trying to create a matrix which has a matrix as
> each element e.g.:
> I then get this message which is understan...Matrix in a Matrix #2
Say for instance: A = [1 2; 3 4; 5 6];
B = [2 1; 3 2; 6 5];
Is there anyway that I can say:
C(1,1) = A;
C(2,1) = B;
Or is it possible to store a matrix as a single element of another?
"Dan" <email@example.com> wrote in message
> Say for instance: A = [1 2; 3 4; 5 6];
> B = [2 1; 3 2; 6 5];
> Is there anyway that I can say:
> C(1,1) = A;
> C(2,1) = B;
> Or is it possible to store a matrix as a single element of another?
Ken Davis just answered th...insert a matrix into matrix
hello, new to all this so excuse my ignorance
lets say i have
x = 1 2 3 4
which i convert to column vector
now i have a, created from the lengh of x in this case 4, and any
value, lets say 4, so
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
now i want to insert x into a 4 times, so that
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
but i want to do this without a loop
i can replace it with numbers
where i = 1 to 4 in this case, but i have to use a loop for that,
did i explain that ok, can anyone help?
On Fri, 19 Nov 2004 20:47:25 -0500, cheeseboy wrote:
> hello...Matrix filtering by other matrix
I have two vectors, one with data, and one with 0 /1 values that says which items on the first vector are valid. I need to create a third vector that is built only from the valid items on the first vector. Is there a single command that does that (it's easy to do it iteratively, but I guess that the performance are bad doing it like that)
"Yoav Rubin" <firstname.lastname@example.org> wrote in message <email@example.com>...
> Hi all,
> I have two vectors, one with data, and one with 0 /1 values that says which items on the fi...Matrix in a Matrix #3
So I have two questions, they aren't complicated so sorry
for asking if they have been answered a lot, but the search
in these forums is just awful.
My first question is simple and it is just how to do an if
statement that can match my string of "Y" or "N" basically i
just don't know how to work with strings.
My next questions is more complicated:
I would like to work with matrices within matrices, by which
i mean i would have a matrix A that is 2x2, but each element
of A is actually a matrix, I don't know if matlab can do
this, but if not, easily ...Matrix of Matrix Names
Let's say I have two matricies:
m_title=[header 1, header 2, header 3] %Matrix of string column headers
m_data=[1 2 3; 4 5 6;7 8 9] %Matrix of data
I want to create three matricies where the end result would be:
header 1 = [1 2 3]
header 2 = [4 5 6]
header 3 = [7 8 9]
so each value in the matrix m_title becomes the name of a matrix containing the coinciding data in the other matrix. Is this possible? Can I throw this into a for loop since it is possible that the number of columns therefore the number of final matrices may change without my prior knowledge?
"Jon ...Copy from matrix to matrix...How?
if the matrix U1 equal to:
and the second matrix U2 equal to:
how can I creat the third matrix whic is equal to:
Please could you change on my code to be right?
This is the code:
waiting for your solution.......Thanks
You can just write:
alfann <firstname.lastname@example.org> wrote in message <2072829264.305125.126762...how to insert a matrix into a matrix
i know this might sound like a dumb question but..
i have a 5 by 1 matrix a=[1,2,3,4,5]
i now have another matrix b say 5 by 5 matrix.
i want a to insert matrix b into matrix a such that matrix a's 1st column still has the values
1,2,3,4,5 and the rest of the columns will have the values of matrix b.
Thanks in advance
"ashish mohan" wrote in message <email@example.com>...
> i know this might sound like a dumb question but..
> i have a 5 by 1 matrix a=[1,2,3,4,5]
> i now have another matrix b say 5 by 5 matrix.
> i want a to insert ma...indexing a matrix with a matrix
I'm trying to work out the syntax for indexing a 2D matrix with a
matrix of coordinates.
I know how to do the 1D version. If I have a 1D vector 'A' and a
vector 'B' that contains index values; then I can do A(B) and it gives
a vector the same length as 'B' with the values of 'A' that correspond
to the indexes in 'B'.
I can't seem to work out the 2D version. 'A' is now a 2D matrix. 'B'
is now a matrix with 2 columns - 1st column is x values, second column
is y values. So each row uniquely indexes a value in 'A'. But how do...matrix of matrix #2
i have many matrixs to dispose on diagonal of a new matrix.
X Y Z matrix N*M
can you help me please?
thanks in any way
> i have many matrixs to dispose on diagonal of a new matrix.
> X Y Z matrix N*M
> can you help me please?
> thanks in any way
Can you give a small example?
At least, take a look at <diag> or <blkdiag>
...matrix selection out of other matrix
Hi, I'm currently working on some trigger data, and I've got my self te samplenumber when the trigger hits. This number is saved in a new matrix called X so X is something like this a matrix of multiple rows by 1 column
now in other data the samplenumber is the number of rows, What i want to do is to select the data by trigger sample number So A= samplenumbers 10:12 and B= 12:14 etc. i thought of somethign like A=data(x(1,1),1:x(2,1),1) Where A is new variable and Data is the selected matrix with multiple rows(20000) and 1 column X is the triggersample number