Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all,

I have a question for all you passionate IT people. Hope to get some good answers.

I was trying to extract Matlab values into C#. My project's front end is C# and back end is Matlab. So far I'm able to extract the values of variables one at a time on a 32 bit computer.

Its doing fine when I add a Matlab library reference but now I want to retrieve the whole structure having multiple data types at a time to save large amount of calls to Matlab. However, this is not working.

Any help is greatly appreciated.

Thank you.
Posted
Updated 10-Mar-11 0:42am
v2
Comments
CPallini 10-Mar-11 6:48am    
How do you integrate C# and Mathlab? What do you mean, exactly, with: "this is not working"? Maybe posting some code would help.
Vishal Misal 10-Mar-11 7:00am    
By integration I mean in my project, I'm working with C# as front end and Matlab as back end to handle electronics part..
And I cant deal with Stucture data structure..which I'm trying to input from Matlab in one go to reduce time required to access each variable in that structure which requires large amount of time..
CPallini 10-Mar-11 7:03am    
This link http://www.mathworks.com/matlabcentral/fileexchange/12987 (the same you may get from Ramalinga's answer) shouws there are three possibilities, which one are you using? Could you please post the relevant code?

1 solution

This[^] might help you.
 
Share this answer
 
Comments
fjdiewornncalwe 10-Mar-11 7:02am    
+5. I'm not sure why people ask questions about 3rd party products like matlab here first without checking in on the dedicated user community first. Cheers.
[no name] 10-Mar-11 7:04am    
Thanks Marcus.
Vishal Misal 10-Mar-11 8:56am    
@Marcus: If u dont have answer thats different thing..
Sergey Alexandrovich Kryukov 10-Mar-11 11:46am    
But how you don't? No, this is not the case... it's found almost immediately, I tried to answer this question before.
--SA
Sergey Alexandrovich Kryukov 10-Mar-11 11:45am    
Agree, it's 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900