Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Help required fom sir Nasser

Subject: Help required fom sir Nasser

From: Muhammad Ramzan

Date: 28 Jan, 2013 09:27:08

Message: 1 of 1

Need your further help sir;

> syms p
> A = [1 p;0 1];
> B = [1 p;0 1-p];
> mat = npermutek(['A' 'B'],4);
> for i=1:length(mat)
> a=eval(sym(mat(i,1)));
> b=eval(sym(mat(i,2)));
> c=eval(sym(mat(i,3)));
> d=eval(sym(mat(i,3)));
> kron(kron(kron(a,b),c),d)
> end
> ------------------------------------

Kindly clarify and help further

1. d=eval(sym(mat(i,3))); whether it should be d=eval(sym(mat(i,4))); or not?

2. I have to further use these 16 matrices, generated by the code you have supplied through kron(kron(kron(a,b),c),d), for multiplication with another 16x16 matrix, say the first one you have given in your reply and to sum up the result.
please help also for it.
i.e. tensor(A,A,A,A).(16x16 matrix).ctranspose(tensor(A,A,A,A))+.......+tensor(B,B,B,B).(16x16 matrix).ctranspose(tensor(B,B,B,B))

where tensor(A,A,A,A) means the first 16x16 matrix generated by your code and given by you above.


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us