Base
Full Name | Shayma Akram |
Organization | Universiti Utara Malaysia |
Job Title | student |
Country |
Forum Replies Created
![Profile Photo](https://optiwave.com/wp-content/uploads/avatars/14262/58339ee86481e-bpfull.jpg)
could you please check the following code:
xc = linspace(0,1,M);
yc = linspace(0,1,M);
A = E1 .* E2;
B = (trapz(xc,trapz(yc, abs(A))) ).^2;
C = trapz(xc,trapz(yc, abs(E1).^2)) * trapz(xc,trapz(yc, abs(E2).^2 ));
OI = B./C;
![Profile Photo](https://optiwave.com/wp-content/uploads/avatars/14262/58339ee86481e-bpfull.jpg)
I have already collected the electric field distribution from InputPort1.Sampled.Spatial.ModeX.Amplitude, but I want to know how to calculate the Overlap Integral from the “InputPort1.Sampled.Spatial.ModeX.Amplitude” in Matlab. Is it by using trapz() function in Matlab?
![Profile Photo](https://optiwave.com/wp-content/uploads/avatars/14262/58339ee86481e-bpfull.jpg)
AMIT singh, please check <a href=”https://optiwave.com/forums/topic/use-of-the-matlab-component-optical-system/” target=”_blank”>this link</a>.
![Profile Photo](https://optiwave.com/wp-content/uploads/avatars/14262/58339ee86481e-bpfull.jpg)
In fact, I want to do some calculations on the coupling coefficients of the input modes to generate new signals (equalize the signals).
In this case, after sending the input data and program the overlap integral inside Matlab to get the coupling coefficients of the input modes. And after doing a calculations on these coupling coefficients, How can I send back the new signal(equalized signals) to the receiver? the OutputPort1 of Matlab component is equal to what??
Where the OutPutPort1 should be included the equalized signals, and the structure of the OutputPort1 of Matlab component, should be similar to the structure of the InputPort1, to be send to the receiver.
![Profile Photo](https://optiwave.com/wp-content/uploads/avatars/14262/58339ee86481e-bpfull.jpg)
Damian Marek, thank you for your prompt response to the question,
(1) Do you mean that, the InputPort1 structer (in Matlab’s workspace), does not include the coupling coefficients?
(2) If the coupling coefficients are calculated in the MMF, why they are not part of the InputPort1 structer?
(3) Is it possible to calculate the coupling coefficients from the input signals?
(4) If I calculate the coupling coefficients from the input signals, is it possible to export them to Matlab?