From: Mousmi Chaurasia on
Actually, I want
A = th 111000
to 2345
er 456
yu 567
wi 6667

B = th 123
on 456
mn 3568
of 1245
wi 666
to 7865
so, new matrix is C = th 111000 123
to 2345 7865
wi 6667 666

I m reading the text file by using textread('filename','%s') but it is not reading the numbers. Don't manually direct input in matlab. Read the file from text.
Please help me...
Thanks
From: Jan Simon on
Dear Mousmi!

> Actually, I want
> A = th 111000
> to 2345
> er 456
> yu 567
> wi 6667
>
> B = th 123
> on 456
> mn 3568
> of 1245
> wi 666
> to 7865
> so, new matrix is C = th 111000 123
> to 2345 7865
> wi 6667 666
>
> I m reading the text file by using textread('filename','%s') but it is not reading the numbers. Don't manually direct input in matlab. Read the file from text.

Please post exactly what the contents of the file is (is 'Actually, I want' or 'A = ' included?) and what you want as output.

Kind regards, Jan
From: Jan Simon on
Dear Mousmi!

And please explain the relation to INTERSECT, which is mentioned in the subject.

Jan