Skip to main content
improved formatting
Source Link
Robert Seifert
  • 25.3k
  • 13
  • 75
  • 117

I try to input matrix in matrix

I try to input matrix in matrix

A=[1 2;2 1]; C=[0 1];

A=[1 2;2 1];
C=[0 1];

%andand then input the matrix in new matrix with

D =[CA;CA^2;CA^3;........;CA^n]

D =[CA;CA^2;CA^3;........;CA^n]

i try to use

n=40;

a(1,1)=1;
a(1,2)=1;
a(2,1)=1;
a(2,2)=1;
C=[0,1];

for k=1:n
for i=1:2
for j=1:2
d(i,j)=ca(i,j)^n
end
end
end

n=40;

a(1,1)=1;
a(1,2)=1;
a(2,1)=1;
a(2,2)=1;
C=[0,1];



for k=1:n
   for i=1:2
      for j=1:2
          d(i,j)=c*a(i,j)*^n
      end
   end
end

%whenwhen n is integer but i can't do
%how

how to solve it ?
%thank

thank you very much for your attention
 

I try to input matrix in matrix

A=[1 2;2 1]; C=[0 1];

%and then input the matrix in new matrix with

D =[CA;CA^2;CA^3;........;CA^n]

i try to use

n=40;

a(1,1)=1;
a(1,2)=1;
a(2,1)=1;
a(2,2)=1;
C=[0,1];

for k=1:n
for i=1:2
for j=1:2
d(i,j)=ca(i,j)^n
end
end
end

%when n is integer but i can't do
%how to solve it ?
%thank you very much for your attention
 

I try to input matrix in matrix

A=[1 2;2 1];
C=[0 1];

and then input the matrix in new matrix with

D =[CA;CA^2;CA^3;........;CA^n]

i try to use

n=40;

a(1,1)=1;
a(1,2)=1;
a(2,1)=1;
a(2,2)=1;
C=[0,1];



for k=1:n
   for i=1:2
      for j=1:2
          d(i,j)=c*a(i,j)*^n
      end
   end
end

when n is integer but i can't do

how to solve it ?

thank you very much for your attention

Source Link

Matrix inner matrix matlab

I try to input matrix in matrix

A=[1 2;2 1]; C=[0 1];

%and then input the matrix in new matrix with

D =[CA;CA^2;CA^3;........;CA^n]

i try to use

n=40;

a(1,1)=1;
a(1,2)=1;
a(2,1)=1;
a(2,2)=1;
C=[0,1];

for k=1:n
for i=1:2
for j=1:2
d(i,j)=ca(i,j)^n
end
end
end

%when n is integer but i can't do
%how to solve it ?
%thank you very much for your attention