The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problem with calling Matlab from OriginC
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SvenFriedemann

Posts

Posted - 02/04/2008 :  06:00:54 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR6
Matlab Version: 7.5.0.342(R2007b)
Operating System: WinXP

Although the Matlab Console works I could not call Matlab from OriginC. Using the example given in externApps.h gives "No Matlab found".

#include <externApps.h> // this file is not included in origin.h
//////////////////////////////////////////////////////////////////
void mltest()
{
Matlab matObj;
if(!matObj)
{
out_str("No Matlab found");
return;
}
}
Regards,
Sven

ML

USA
63 Posts

Posted - 02/06/2008 :  11:11:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Sven,

Try to replace the line

	Matlab		matObj; 


with the line

	Matlab		matObj(TRUE); 


ML
Go to Top of Page

SvenFriedemann

Posts

Posted - 02/20/2008 :  04:03:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi ML,

now it works, thanks a lot.

Sven
Go to Top of Page

SvenFriedemann

Posts

Posted - 02/20/2008 :  04:57:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Unfortunately, I'm now faced with the problem of transferring matrices from Origin to matlab as already discussed http://www.originlab.com/forum/topic.asp?TOPIC_ID=4154.

Regards,

Sven

Edited by - SvenFriedemann on 02/20/2008 05:01:37 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000