How to multiply matrices randomly?
Show older comments
I need a matlab code for positional-random matrix multiplication (choose M1 or M2 randomly)
frequency = 100 to 200 THz (i.e 100e12 to 200e12 Hz)
M1=[ cos(phi_1), sin(phi_1); sin(phi_1), cos(phi_1) ] where phi_1=d1*n1*frequency, d1= 258 nm and n1=1.45
M2=[ cos(phi_2), sin(phi_2); sin(phi_2), cos(phi_2) ] where phi_2=d2*n2*frequency, d2= 163 nm and n2=2.3
M=M1M2M1M1M2M1M2M1M2M2........ (random multiplication) (total matrix) (200 micro meters length i.e approximately 500 layers)
I need a plot of transmission vs frequency
T=1/M(1,1) (transmission vs frequency)
And I need a plot of average transmission vs total length (200 micro meters)
Mean_T=avg(T) (average transmission vs total length)
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!