Please help me with System.Nullable in Matlab .Net Interface
3 views (last 30 days)
Show older comments
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;
}
}
}
0 Comments
Answers (0)
See Also
Categories
Find more on Call MATLAB from .NET in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!