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 | calling matlab from C

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

  

Post a new Thread

calling matlab from C - elsanky - Mar 25 20:01:34 2008



I am trying to call matlab from C using the Matlab Engine. Is there a
way to directly read and write files in the Matlab code for example

Engine *ep;
engEvalString(ep,"raw_data=importdata('bse30_7_3.csv',',',2);");
                          or
engEvalString(ep,"success_var=xlswrite('port_opt_out_data_30.xls',out_data);");

Would I have to do all the file I/O in the C part of the code? Do I
have to have variables declared in the C part in order to
send/retrieve them across from the Matlab sections of the code?

People with experience writing Matlab code within C using Matlab
Engine plz help!! 



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