A Matlab command that will send a variable from Matlab workspace into Lumerical workspace via Matlab interoperability API.
|
Syntax |
Description |
|---|---|
|
appputvar(h,'T',T_value); |
Sends variable T_value from Matlab workspace via an active session h into Lumerical's workspace as variable T |
Example
The following Matlab code example opens FDTD as a client and sends/retrieves a variable to/from Lumerical FDTD workspace:
path(path,'C:\Program Files\Lumerical\FDTD\api\matlab'); %add Lumerical API path to Matlab;
h=appopen('fdtd');
a=4;
appputvar(h,'x',a);
appevalscript(h,'y=x^2;');
b=appgetvar(h,'y');
appclose(h);
See Also