CST - MATLAB API

Hello, I am trying to control CST Studio Suite from Matlab.

Looking for the MATLAB equivalent of the VBA code below.  

Thank you    


Public Sub CST_GET_LIST_OF_PARAMETERS()

Dim studio As Object

' get currently open CST STUDIO SUITE

Set studio = CreateObject("CSTStudio.Application")

Set mwsproj = studio.Active3D

'Dim parko As Object

NP = mwsproj.GetNumberOfParameters

For i = 0 To NP - 1

XNAME = mwsproj.GETPARAMETERNAME(i)

XVALUE = mwsproj.GETPARAMETERNVALUE(i)

Debug.Print XNAME, XVALUE

Next i

End Sub