I have written matlab code for Transmission coeficient for a one-dimensional photonic crystal,but i have problems with it.it does not result the right answer!:confused:
could any one help me about this?
i use Transfer matrix method:
an ENG-DPS structure:
I know what u mean!!and I do not expect MATLAB to do s.th strange..
I want to replace this array's elements in this matrix.
i will use a matrix like this as the transfer matrix in PC structures,and multiplicantion of these matrices for every layer,but with this selected array , i face some...
I have a 2x2 matrix and an array , for example:
a=linspace(0,12) %this is my frequency range.
this one does not results a 2x2 matrix, that I need it to have ...B2xB1xB
how could i get a 2x2 matrix? should i use a loop instead of an array...