Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Debugging DLLs Using MATLAB

Debugging DLLs Using MATLAB

Views: 443|Likes:
Published by roman.zeyde

More info:

Published by: roman.zeyde on Oct 22, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
Visibility:Private
See more
See less

01/03/2013

pdf

text

original

 
Debugging DLLs using MATLAB
Set up the project
Start Visual Studio and create a new Win32 DLL project:1.Choose: [File] > [New] > [Project]2.Choose Win32 Project and pick up a name for it (e.g. "main") and a location.3.Uncheck "Create directory for solution" and press "OK".4.On "Application Settings" tab, choose "DLL" option, choose "Empty project" andpress "Finish"Add 3 files to your project:main.c
double f(double x){return 2*x + 1;}
main.h
double f(double x);
main.def 
LIBRARY"main"EXPORTS f
Set MATLAB as the debugger
Go to [Project] > [main Properties] > [Configuration Properties] > [Debugging].Set "Command" to "C:\Program Files\MATLAB\R2008a\bin\win32\MATLAB.exe"Build the project and choose [Debug] > [Start Debugging] to run MATLAB in your project'sdirectory.
Load the DLL from MATLAB
Use the following MATLAB commands:

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
kcshieh liked this
arulforyou liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->