Hey friends, i am working on simulation of power system using matlab. for that i have written codes for generation side and line side separately. Now i want to use the result of generation file to line file....so how can i use the result of one file to another.... eg i have gen.m file from that i can get hourly gen data....now i want to compare that data to line.....and line modelling is done in separate file line.m so i want to call result of gen.m file to line.m file..... waiting for ur valuable suggestion thanks ...

Hi, I am reading the help documents about how to program matlab and C C++ together and my questions are a little bit general. It seems that are several ways to call matlab in C C++ and another several ways to call C C++ in matlab. Please correct me if I am wrong or missing something when I try to list them. To call matlab code in C C++, are there two methods available? The first one is Matlab engine and the second one is to use MATLAB Compiler mcc to create C or C++ shared libraries from your MATLAB code. To call C C++ in matlab, are there also two methods? The first one is to call funct...

help please how can i pass 3d matrix from matlab to c using mex file thanks baavour@gmail.com wrote: > help please > > how can i pass 3d matrix from matlab to c > > using mex file This is a mailing list for the Python programming language. Please ask your question on the appropriate Matlab mailing list. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco ...

Hello, I want to pass a Matlab structure (called 'para') to a C++ mex file 'gateway.mex'. The fields of the structure can be complex, numeric or a string. The data type of the field are decribed below: para.fieldname1 is a numeric para.fieldname1 is a string para.fieldname1 is a complex number In the mex file (called by gateway(para)) I write something like this to get the values of the different fields. mxArray *tmp; double dbl,*pre,*pim; char *str; To get the numeric field : tmp = mxGetField(prhs[0],0,fieldname1); dbl=mxGetScalar(tmp); To get the string field: tmp = m...

please i need help how can i pass a 3d matrix from matlab to C mex file thanks Its the same as passing in a 2D matrix. You can get individual elements like: void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double * pData; mwSize * pSize; mwSize nDims; double DesElement; nDims = mxGetNumberOfDimensions(prhs[0]); pSize = mxGetDimensions(prhs[0]); pData = mxGetPr(prhs[0]); //Then to get element at equivilent Matlab index (r,c,d) DesElement = pData[r-1 + (c-1)*pSize[0] + (d-1)*pSize[0] *pSize[1]]; } "Bavi b...

Hi everyone, i'm new in calling C file whitin matlab. I wrote a c function called intex : double* intex(double *zrd_a, int dim_of_matrix, double delta_t, int fa, int is_phi_h); and its mexFunction in C. As you can see, i read the matrix "zrd_a" to calculate and give as output another matrix. The problem is after calling the C method a certain time (5 or 10 times), Matlab craches and show the following error: ---------------------------------------------------------------------- -- Segmentation violation detected at Tue Dec 12 12:15:55 2006 -----------------------------...

Hello, I have c-function interfaced via mex. Inside this function several file streams are opened, content is written using fprintf() and the files are closed. Some file descriptors are defined within the function scope, opened there, written there and closed there. With these files all is fine. But one file descriptor is declared globally, opened in one function, written to in another and finally closed in the function, where it has been opened. The problem with this file is, that after a successful call of the mex function, the file size is 0 bytes. The file is opened with "w" ...

Hi, I have some MS Visual C++ 2008 code that is compiled using mex command into dlls; and the code is executed from Matlab 2010a. I now want to call some Matlab commands from within the C++ functions (to solve large complex linear equations/matrix inversion). From what I could read online and on the Matlab engine webpage, I will have to create an exe file rather than dll to call Matlab from C. I'm not familiar with either dlls or exes, and I am unable to compile the code correctly now. I get the error: LINK : fatal error LNK1561: entry point must be defined I will apreciate if s...

please i need help how can i pass a 3d matrix from matlab to C mex file thanks ...

hi, >i creat an M-file which has an imagen in file then in matlab i create it dll using >deploytool >Then i include this dll in visual studio 2005 C#.Net project >Then i make a windows form which has a button,picturebox,textbox openfiledialog >what should be the code of button it access the m-file from matlab show its path in >textbox and image in picture box or >what is the procedure of accesing matlab file from C#.Net,plz help me for this >problem immediatley >my code of m-file is function aa %Ori_Face=imread('E:\Shakir\Faisal\Face\sub6.1.jpg'); ...

As a solution to some posts a while ago about reading compressed matlab 7 files in matlab 6, i posted load5 to the file exchange (7734) which does this. Note that the "Other Requirements" field on the FX is outdated as the zip file has both windows and linux versions and DOES search the matlab path if the file is not found in the current directory. ...

Hello, I have written a mex gateway function to a C++ class. If I compile this mex function on 32Bit windows using R2008a I have no problems. If I compile and run on Matlab R2011a running 64bit Scientific Linux (a version of Red Hat Enterprize Linux) matlab exits with a segfault when the mexfunction is called, although it appears to run about halfway through the program. The C++ class can be compiled and run (with a main function) outside of Matlab on both platforms with no errors. I am using Microsoft Visual C++ Express Edition on the windows machine, and gcc 4.4.5 on the Linux machine. ...

I am a beginner at MEX functions, and i have a big main program with a funtion like this: function c=speedOfSound global pSettings; c=pSettings.c; I want to call this variable from my MEX function callded from the main ".m" file, and have tried to do this in the following manners: 1: mxArray *properties[1]; mexCallMATLAB(1, properties, 0, NULL, "speedOfSound"); double c=*(mxGetPr(properties[0])); 2: mxArray * Speedofsound=mexGetVariable("global", "pSettings.c"); double c=*(mxGetPr(Speedofsound)); Both choices gives me a errors...

hi i am fascinated about Is it possible to convert a matlab files into a .c files or python ? is there any easy way for doing this ? if yes please tell me how ??? "ofdma_matlab" wrote in message <j5sf1u$hnl$1@newscl01ah.mathworks.com>... > hi i am fascinated about Is it possible to convert a matlab files into a .c files or python ? > is there any easy way for doing this ? > if yes please tell me how ??? Hi, yes, see http://www.mathworks.com/products/matlab-coder/ to generate C or C++ code. Wayne ...

The Plaxton Pointer (originally known as the Reeve Burgess Pointer , and later as the TransBus Pointer and Alexander Dennis Pointer ) is a successful ...

Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

... outline for a map, making it super-easy to edit, and also to have it in the most convenient form for someone browsing over the data. Any pointers ...

Get Anchor Pointer — GPS Compass & Friend Navigator on the App Store. See screenshots and ratings, and read customer reviews.

Los Angeles Lakers vs Seattle Super Sonics 07/01/2003 Ignore Tags : mix derrick rose mix miami heat new york knicks mix thunder lebron james ...

Large schools of salmon are bringing danger to Perth's beaches and waters as Great White Sharks follow the fish along the coast.

Apart from hilarious change strips, footy’s number one growth industry appears to be inexplicable phenomena

... nowhere to be seen. The stretch of coast just north of Newcastle has long had a reputation as being a “nursery” for juvenile white pointer sharks. ...

BUNBURY shark attack survivor Sean Pollard says he feels lucky to be alive after his miracle escape from a white pointer near Esperance.

Georgia State coach Ron Hunter fell out of his chair. The rest of America probably did, too.

Resources last updated: 2/13/2016 8:33:09 PM