From: jonathan on 23 Feb 2010 04:45 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 23 Feb 2010 04:57 "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
|
Pages: 1 Prev: Where is randi? (Why doesn't my Prof. have it?) Next: Delay |