I am new to MATLAB. By using the command NET.addAssembly I am loading a .NET assembly, instantiating an object of assembly's class, then I am invoking the methods of the class.
Passing parameters such as double, char to method of assembly class is working fine.
But when I am trying to pass cell array to method of instantiated class, it shows an error parameter mismatch.
I have done the following procedure:
s = NET.addAssembly('name of assembly')
t = s.AssemblyHandle.GetType('Class present in assembly');
obj = System.Activator.CreateInstance(t);
obj.PassCellArray(CellArray);
.NET Method
public void PassCellArray(System.Object[] dd) {}
According to the documentation, we can pass the cell array to a method which has parameter as System.Object[].
So please help me for how to pass cell array to .NET method.