Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | How to mex "linprog"

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

How to mex "linprog" - spottie3 - Oct 9 17:26:00 2003



Hi,

I am running 1000's of simulations that call linprog in MATLAB. I
have found that much of the computing time is spent in linprog. I
have tried streamlining my code using vectorization, memory pre-
allocation, and mex files when possible.

However, when I try to "mcc -x linprog" I get the following error:
"Warning: File: optim/private/diagnose Line: 179 Column: 22
The MATLAB Compiler does not currently support MATLAB object-
oriented programming. References to the method "formula" will
produce a run-time error."

Does anyone know how to generate the mex equivalent of linprog in
MATLAB?

Thanks for your time!





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: How to mex "linprog" - Nihal Ahmad - Oct 10 6:20:00 2003

Dear spottie,
Just check whether this file is using any Instrument Control function in
linprog.m
Because MATLAB compiler doesn't support the functions of Instrument Control
Toolbox.
Just type depdir('Linprog') on Matlab command window. It'll display the list
of directories used by Linprog.m file.
If it's using any function from 'C:\MATLAB6p5\toolbox\matlab\iofun', means
it is using Instrument Control Toolbox function and you can't use the mcc -x
Linprog to generate the dll.
If you will be able to generate the required dll, that dll will cause the
Matlab to crash.
Hope this will help.
Regards
Nihal

----- Original Message -----
From: "spottie3" <>
To: <>
Sent: Thursday, October 09, 2003 10:56 PM
Subject: [matlab] How to mex "linprog" > Hi,
>
> I am running 1000's of simulations that call linprog in MATLAB. I
> have found that much of the computing time is spent in linprog. I
> have tried streamlining my code using vectorization, memory pre-
> allocation, and mex files when possible.
>
> However, when I try to "mcc -x linprog" I get the following error:
> "Warning: File: optim/private/diagnose Line: 179 Column: 22
> The MATLAB Compiler does not currently support MATLAB object-
> oriented programming. References to the method "formula" will
> produce a run-time error."
>
> Does anyone know how to generate the mex equivalent of linprog in
> MATLAB?
>
> Thanks for your time! >
>
> _____________________________________
> /groups.php3

_______________________________________________
This email with any attachments is for the exclusive use of the intended
recipient/s & may contain confidential & legally privileged information.
If you are not the intended recipient pls notify the sender immediately
& delete the email from your system. Any unauthorised use, disclosure,
printing, dissemination, forwarding or copying of this mail is strictly
prohibited and unlawful.
Visit us at : http://www.cranessoftware.com





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )