Please help me with System.Nullable in Matlab .Net Interface

3 views (last 30 days)
I am new with .NET interface in matlab. Now, I am following the topic "Pass System.Nullable Arguments" and I want to build the NetDocNullable assembly.
The provided code of this assembly was written in C#, and it needs to be converted to .m file function in matlab in order to build a NetDocNullable.dll.
However, I do not know how to convert it to matlab function.
Could anyone please help me to convert this C# code to matlab function?
Thank you so much for your help.
C# code:
using System;
namespace NetDocNullable
{
public class MyClass
{
private Nullable<double> myField = null;
public Nullable<double> GetField()
{
return myField;
}
public Nullable<double> SetField(Nullable<double> db)
{
myField = db;
return myField;
}
}
}

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!