From: jonathan on
i have this basic matlab m-file codes for affine transformation
c=xlsread ('data.xls,1)'
n=size (c);
for i=1:n
w=[[c(i,1) c(i,2) 1 0];[c(i,2) -1*c(i,1) 0 1]]
end

the data.xls is a 7x4 matrix:
the expected output is a 14x4 matrix which depended on the input matrix

my problem is: i want the above 14x4 matrix to be displayed as matrix
From: us on
"jonathan " <quayeballard(a)itc.nl> wrote in message <hm0831$cr8$1(a)fred.mathworks.com>...
> i have this basic matlab m-file codes for affine transformation
> c=xlsread ('data.xls,1)'
> n=size (c);
> for i=1:n
> w=[[c(i,1) c(i,2) 1 0];[c(i,2) -1*c(i,1) 0 1]]
> end
>
> the data.xls is a 7x4 matrix:
> the expected output is a 14x4 matrix which depended on the input matrix
>
> my problem is: i want the above 14x4 matrix to be displayed as matrix

a hint:
- make use of a CELL, then CAT the result...

% some ideas...
w=cell(n,1);
% loop
w{i,1}=[[...]];
% finally
w=cat(1,w{:});

us