MCR .Net using Native Dll, data type unsupported by matlab
Hi there.
i have a MATLAB function that returns a struct (Instace) and a string (Json)
function [Instance,Json] = Process(path)
% Some Work
end
i am compiling this function into .Net dll and taking the native.dll file.
then i run this function from c#, and i get this error
"Data type unsupported by MATLAB .NET Assembly for conversion to array"
which means that the MCR can’t convert the struct (Insrance) into a .Net object.
if i remove the struct (Instace), it works fine.
Q:
is there a way to ignore this parameter?, without returning just the Json.
it need to return both of them.
i don’t need it just the json.
Thanks!Hi there.
i have a MATLAB function that returns a struct (Instace) and a string (Json)
function [Instance,Json] = Process(path)
% Some Work
end
i am compiling this function into .Net dll and taking the native.dll file.
then i run this function from c#, and i get this error
"Data type unsupported by MATLAB .NET Assembly for conversion to array"
which means that the MCR can’t convert the struct (Insrance) into a .Net object.
if i remove the struct (Instace), it works fine.
Q:
is there a way to ignore this parameter?, without returning just the Json.
it need to return both of them.
i don’t need it just the json.
Thanks! Hi there.
i have a MATLAB function that returns a struct (Instace) and a string (Json)
function [Instance,Json] = Process(path)
% Some Work
end
i am compiling this function into .Net dll and taking the native.dll file.
then i run this function from c#, and i get this error
"Data type unsupported by MATLAB .NET Assembly for conversion to array"
which means that the MCR can’t convert the struct (Insrance) into a .Net object.
if i remove the struct (Instace), it works fine.
Q:
is there a way to ignore this parameter?, without returning just the Json.
it need to return both of them.
i don’t need it just the json.
Thanks! mcr, .net, data type, c#, convert MATLAB Answers — New Questions