필터 지우기
필터 지우기

How to Pass Complex structure From Matlab WorkSpace to .Net Application ?

조회 수: 1 (최근 30일)
Jatin Soni
Jatin Soni 2016년 8월 25일
편집: Jatin Soni 2016년 8월 25일
I have a structure in Matlab workSpace Ex Person. Now I wish to Pass this structure to my .Net Application So that I can launch GUI so that user can can Modify that easity and then Pass the Modified structure back to workspace.
%Declaring Struct. person.LastName = 'Clinton' person.Name = 'Donald'
%Loading .Net DLL asm = NET.addAssembly('ModifyStructTool.dll'); self.f=ViewModifyCalTool.MainForm(''); self.f.SetObj(p)
Error: No method 'SetObj' with matching signature found for class 'ViewModifyCalTool.MainForm'.
.Net Code public struct Person { public string Name; public string LastName; }
public void SetObj(Person varargin)
{
//Launch GUi and Edit.
}
When I call the function 'SetObj' it gives below error Error: No method 'SetObj' with matching signature found for class 'ViewModifyCalTool.MainForm'.
I am not sure how to Cast/Marshal struct from Matlab to C#

답변 (0개)

카테고리

Help CenterFile Exchange에서 .NET Client Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by