I am trying to send variables from lumerical to matlab. I was following this example

I get the error saying “line 26: Could not send variable E2 to MATLAB”; however, I get the matlab plot. So, I think my matlab integration was correct, but I am not sure why the variables are not getting transferred.



Generally if you follow the guidline on the website strictly, you may get the right result(I met this before and solved it suddently).
So you can try to connect the two softwares again.
But I suggest that you can save the data with "matlabsave " and load the data to matlab by “load” the deal with them. As I tried and find it is of very low efficiency to run them together.