f



MATLAB FFTW MEX CRASH

I'm trying to compile FFTW library functions into a mex C++ file. I managed to compile the file successfully. "mex  filename.cpp -I/path/to/include -L/path/to/lib -lm -lfftw3 -output test"

But when I run from MATLAB cmd window, MATLAB will crash with segmentation fault.

Anyone has any suggestions, thanks

the code is very simple as follows:

#include "mex.h"
#include "stdlib.h"
#include "stdio.h"
#include "fftw3.h"

/* $Revision: 1.8.6.3 $ */

void timestwo(double y[], double x[])
{
  y[0] = 2.0*x[0];
}

void test_fftw()
{
	  int N=8;

	  double *in, *in2;
	  fftw_complex *out;

	  fftw_plan p, p_rev;

	  in = (double*)fftw_malloc(sizeof(double)*N);
	  in2 =(double*) fftw_malloc(sizeof(double) * N);

	  out = (fftw_complex*)fftw_malloc(sizeof(fftw_complex) * N);

	  fftw_free(in);
	  fftw_free(in2);
	  fftw_free(out);

}

void mexFunction( int nlhs, mxArray *plhs[],
                  int nrhs, const mxArray *prhs[] )
{
  double *x,*y;
  mwSize mrows,ncols;

    /* Check for proper number of arguments. */
    if(nrhs!=1) {
      mexErrMsgTxt("One input required.");
    } else if(nlhs>1) {
      mexErrMsgTxt("Too many output arguments.");
    }

    /* The input must be a noncomplex scalar double.*/
    mrows = mxGetM(prhs[0]);
    ncols = mxGetN(prhs[0]);
    if( !mxIsDouble(prhs[0]) || mxIsComplex(prhs[0]) ||
        !(mrows==1 && ncols==1) ) {
      mexErrMsgTxt("Input must be a noncomplex scalar double.");
    }

    /* Create matrix for the return argument. */
    plhs[0] = mxCreateDoubleMatrix(mrows,ncols, mxREAL);

    /* Assign pointers to each input and output. */
    x = mxGetPr(prhs[0]);
    y = mxGetPr(plhs[0]);

    /* Call the timestwo subroutine. */
    printf("fjiejfiej\n");
    test_fftw();
    timestwo(y,x);

}
0
the_rome (48)
5/9/2012 3:00:07 PM
comp.soft-sys.matlab 211266 articles. 23 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
726 Views

Similar Articles

[PageSpeed] 44

Reply:

Similar Artilces:

Mex file crashes Matlab
Hello all, I created successfully a mex file. It is linked to an external dll and it worked fine (it returns correctly to matlab a vector). Recently I added an new function inside my c++ file which does not affect the result of the c++ function but is just used to improve some data manipulation. By the way, this function works quite well in a simple c++ file and I have already used many times in other c++ files (no-mex files). After added this function my matlab crashes and returns me this error: MATLAB crash file:C:\DOCUME~1\MILCEMEA~1.VAA\LOCALS~1\Temp\matlab_crash_dump.2996 ------------------------------------------------------------------------ Segmentation violation detected at Wed Jul 28 18:38:04 2010 ------------------------------------------------------------------------ Operating System: Microsoft Windows XP Window System: Version 5.1 (Build 2600: Service Pack 3) Processor ID: x86 Family 6 Model 7 Stepping 10, GenuineIntel Virtual Machine: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode Default Encoding: windows-1252 Fault Count: 1 Register State: EAX = ffff5df8 EBX = 00c2e01c ECX = ffffffff EDX = e06d7363 ESI = ffff5df4 EDI = 04f169ec EBP = 00c2e028 ESP = 00c2cf40 EIP = 04ec186e FLG = 00010286 Stack Trace: [0] qlDiscountFactors.mexw32:0x04ec186e(0x00c2e158 "x£", 0x00c2e0b8, 0x00c2e1fc, 0) [1] 0x00c2e20c(0x8b00032b, 0x04c483d8, 0x85e85d89,...

Why can't Fortran-mex files be compiled on matlab V5.3 and run on matlab V6?
Hi, does anyone know why Fortran-mex files can't be compiled on matlab V5.3 and run on matlab V6? For example: if I compile the example-program (shipped with matlab) timestwo.f on matlab version 5.3 (R11) and try to run it on matlab version 6+ (R12 or R13), I get the error message: "Unable to load mex file: E:\timestwo.dll. The specified module could not be found. ??? Invalid MEX-file" Likewise if I compile it on matlab version 6.1 (R12), I get a similar error message if run on matlab version 5.3 (R11). However, if I run it on matlab version 6.5 it works OK. If I try the same experiment with the corresponding example file written in C, timestwo.c, I get no such problems. Why is that? Per A. Hi Per, usually MEX-files need to be compiled with the MATLAB version you want it later to run with. The reason is, that the code links against the current dynamic libraries (DLLs), which may change from version to version. You may have luck that it works (see your example of timestwo.f), but you should never rely on this. Titus "Per A. Brodtkorb" <Per.Brodtkorb@ffi.no> wrote in message news:eecb303.-1@webx.raydaftYaTP... > Hi, > > does anyone know why Fortran-mex files can't be compiled on matlab > V5.3 and run on matlab V6? > > For example: if I compile the example-program (shipped with matlab) > timestwo.f > on matlab version 5.3 (R11) and try to run > it on matlab version 6+ (R12 or R13), I ...

Matlab crashes on dbquit
Whenever I set a breakpoint to debug a matlab program, and then quit debugging with "dbquit", Matlab crashes. The same happens when I click the corresponding button in the editor to quit debugging. Although it is not too serious a problem, it is still annoying. Any ideas what I could do against it? Here the output from "ver": ------------------------------------------------------------------------------------- MATLAB Version 7.5.0.338 (R2007b) MATLAB License Number: 44671 Operating System: Linux 2.6.24.4-64.fc8 #1 SMP Sat Mar 29 09:54:46 EDT 2008 i686 Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode ------------------------------------------------------------------------------------- "Harald Grossauer" <harald.nospam.grossauer@uibk.ac.at> wrote in message news:480c83be@sia.uibk.ac.at... > Whenever I set a breakpoint to debug a matlab program, and then quit > debugging with "dbquit", Matlab crashes. The same happens when I click > the corresponding button in the editor to quit debugging. > Although it is not too serious a problem, it is still annoying. > > Any ideas what I could do against it? > > Here the output from "ver": > > ------------------------------------------------------------------------------------- > MATLAB Version 7.5.0.338 (R2007b) > MATLAB License Number: 44671 > Operating System: Linu...

Contribute to MATLAB Central and Win a MATLAB Jacket
Many of you who post to this newsgroup are also regular contributors to the MATLAB Central File Exchange. Look for your favorite contributors on our File Exchange Author Profile page. You can read their profiles and see pictures: <http://www.mathworks.com/matlabcentral/reports/fileexchange/allProfiles/> In a random drawing, we recently awarded MATLAB jackets to three File Exchange authors with profile pages: Michele Giugliano, Andrey Egin, and Denis Gilbert. You can win a jacket, too. Just submit a new file to the File Exchange or update your author profile by December 2003 for a chance to win one of four MATLAB jackets. See the jacket below: <http://www.mathworks.com/matlabcentral/images/jeff3.jpg> Here are some interesting File Exchange facts: - Since its inception in 2001, visitors have downloaded more than 1.25 million submissions from the File Exchange. - In September 2003 alone, visitors downloaded 80,085 files, an average of 2670 a day! .... what if the prize was a free copy of the next version of Matlab :-) majb Min Poh wrote: ....or an offer for employment... aj "bourassa" <bourassa-m@rmc.ca> wrote in message news:3f9d507d$1@rmcnt03a.rmc.ca... > ... what if the prize was a free copy of the next version of Matlab :-) > > majb > > Min Poh wrote: > ...

Matlab parallel for loop or Matlab open pool
I am trying to to some computations and I would like to do it in parallel using parfor or by Opening the matlabpool.. as the current implementations is too slow: result=zeros(25,16000); for i = 1:length(vector1) % length is 25 for j = 1:length(vector2) % length is 16000 temp1 = vector1(i); temp2 = vector2(j); t1 = load(matfiles1(temp1).name) %load image1 from matfile1 t2 = load(matfiles2(temp2).name) % load image2 from matfile2 result(i,j)=t1.*t2 end end It work fine but I would really like to know if there is a way to speed thing up ... Thanks a lot in advance! ...

Call Matlab m-file from Matlab Scrip Node
My problem with matlab script node is related to calling function in matlab.&nbsp; I created an m-file function that takes an imput temperature (from DAQ) and defines a material property.&nbsp; My matlab script node doesn't seem to recognize my function.&nbsp; I have placed the function in the folder the vi is currently located, but it doesn't read it.&nbsp; How do I get matlab script node to read the functions I create in matlab? Add the directory to matlab path, or call the .m file with it full name ( D:\..... \myfile.m) Let me clarify, &nbsp; I have pasted my matlab code into the matlab scrip node. &nbsp; In this code, I have called a subfunction that I have created. &nbsp; Example k(n)=k_c(T(n)) where k_c is a subfunction I have created. &nbsp; How do I get my code in the node&nbsp;to sucessfully read the subfunction k_c? &nbsp; &nbsp; &nbsp; As indicated, you need to add the directory where the .m file containing the function resides to the list of paths that are read in. This is your startup.m file. The other option is to do a "cd" command prior to calling your function to change to the directory where the .m file containing the function resides. Thanks for reiterating the information.&nbsp; My matlab script node is working properly.&nbsp; I had never used the "cd" command in matlab.&nbsp; I always set the working directory when I open the program, and put all the m files into t...

Need help for a matlab mini project
Hello everyone, I have a matlab in class exercise due in few days. I am new to matlab and the instructions provided with the assignment is minimal. Can Someone help me with the basic understanding as in how can I map the problem's solution to matlab script ? I am not able to post question here as it is a jpeg file. Please let me know and then we can discuss further. ...

Matlab builder JA: parse java string to matlab cell
Hi all, I'm building a java swing based GUI for my Matlab application. As such, user input is available as text strings, for example "{[0; 0], [3.5 0; 0 2]}" (mean vector and covariance matrix of a 2D Gaussian). The user input will be passed to the compiled matlab method as a MWCellArray. Problem is how do a convert (parse) the above string into a MWCellArray? From its javadoc http://www.mathworks.com/access/helpdesk/help/toolbox/javabuilder/MWArrayAPI/index.html the following method is available: java.lang.String toString() Returns a string representation of this array, but the reverse method is not. Evidently, parsing a string like the one above is a non trivial task and I'm loath to attempt writing one by myself. I would be very thankful if someone can point me to the required parser implementation. Matlab itself is carrying out this task all the time, perhaps it is possible to access Matlab's own parser. Help much appreciated, Ritesh ...

bar
In MatLab 6.5, the routine above works normal: figure; sem=Average(:,2)./sqrt(Average(:,3)); bar([1:1:7],Average(:,1),sem); ylabel('% of epochs analyzed') xlabel('Frequency Band') title ('Occurrence of Oscillatory Events - Ch X') %Where Average and sem are vectors; But, in MatLab 7.0, the same code cause the following error: ??? Error using ==> xychk Too many input arguments. Error in ==> bar at 53 [msg,x,y] = xychk(args{1:nargs},'plot'); Error in ==> cross_subj_analysis>ok_Callback at 327 bar([1:1:7],Average(:,1),sem); I'd like to know why this occour. Thanks Henrique In article <g7a1j6$l1$1@fred.mathworks.com>, Henrique Amaral <henriquetomaz@uol.com.br> wrote: >In MatLab 6.5, the routine above works normal: >figure; >sem=Average(:,2)./sqrt(Average(:,3)); >bar([1:1:7],Average(:,1),sem); >ylabel('% of epochs analyzed') >xlabel('Frequency Band') >title ('Occurrence of Oscillatory Events - Ch X') >%Where Average and sem are vectors; >But, in MatLab 7.0, the same code cause the following error: >??? Error using ==> xychk >Too many input arguments. >Error in ==> bar at 53 > [msg,x,y] = xychk(args{1:nargs},'plot'); >Error in ==> cross_subj_analysis>ok_Callback at 327 >bar([1:1:7],Average(:,1),sem); >I'd like to know why this occour. When the third argument is numeric, it must be the bar width. barwidth must b...

This function crashes matlab occasionally... why?!
I have a function that displays several images in one figure (see below). I= 've also been experiencing a lot of MATLAB/Java crashes that I think can be= traced to this function. I'm not sure why it happens... it's quite rare, o= nce a week or two. Can someone tell me what is causing the problem? q=3Drepmat(phantom(256,256),[1 1 9]); ims(q) function ims(im,RANGE,TITLE) % RANGE: e.g. [0 1] for [hi lo] or [0 1;NaN 100;...] for individual ranges % (note: use [] or NaN for no range) % TITLE: ['plot1';'plot2';...] (must be same length) % make into 3D array im =3D squeeze(im); [x y n] =3D size(im); im =3D reshape(im,x,y,n); % try and figure out a nice tiling rows =3D floor(sqrt(n)); cols =3D ceil(n/rows); N =3D [rows cols]; % clear existing plots clf reset % plot here for i =3D 1:N(1) for j =3D 1:N(2) k =3D (i-1)*N(2)+j; if k>n; break; end lo =3D min(min(im(:,:,k))); hi =3D max(max(im(:,:,k))); if exist('RANGE','var') && ~isempty(RANGE) if size(RANGE,1)=3D=3D1 % use same setting for all if ~isnan(RANGE(1,1));lo =3D RANGE(1,1);end if ~isnan(RANGE(1,2));hi =3D RANGE(1,2);end else if k<=3Dsize(RANGE,1) % individual ranges if ~isnan(RANGE(k,1));lo =3D RANGE(k,1);end if ~isnan(RANGE(k,2));hi =3D RANGE(k,2);end ...

Another Matlab fft2 != FFTW
Hello, I have something strange... There is a matrix of 5x5, padded with zeroes to 9x9: Columns 1 through 7 -0.1449 -0.0888 0.0095 -0.0816 0.1081 0 0 0.0013 -0.1255 -0.0517 -0.0423 0.0090 0 0 -0.0156 0.2098 0.2978 -0.1366 -0.1449 0 0 0.0103 0.0943 0.0068 0.0311 -0.0550 0 0 0.0711 0.0695 -0.0577 0.0572 -0.0314 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Columns 8 through 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 In matlab, an fft2 yields the following: Columns 1 through 3 0.0000 0.2733 - 0.1159i -0.2439 - 0.4495i -0.4673 - 0.1859i -0.6651 - 0.2544i -0.6534 + 0.4118i -0.3924 + 0.2796i -0.4806 + 0.5024i 0.3644 + 0.6977i -0.1653 + 0.2693i -0.0195 + 0.3936i 0.5265 - 0.1896i 0.1352 + 0.2382i 0.2658 + 0.0587i 0.0051 - 0.4679i 0.1352 - 0.2382i -0.1037 - 0.5388i -0.5974 - 0.2733i -0.1653 - 0.2693i -0.7101 - 0.2598i -0.5318 + 0.5770i -0.3924 - 0.2796i -0.7927 + 0.2416i 0.2980 + 0.5578i -0.4673...

can't run matlab setup/No puedo correr matlab
Hi! I opened the&nbsp;matlab script fractal.vi&nbsp;then my antivirus (Kaspersky)&nbsp;ask&nbsp;if I acept the modified te registry of matlab setup,&nbsp; I &nbsp;say "yes" After that when I want open matlab the setup run but inmediatly it's close, why???? &nbsp; Hola: Abri el matlab script fractal.vi y mi antivirus (Kasoersky)me preguntaba si aceptaba una modificacion del registro del setup de matlab yo acepte Despues de eso cuanto abro matlab se cierra inmediatamente porque?? &nbsp; &nbsp; &nbsp; Hola Sa�l Es probable que el problema est� relacionado con el antivirus Kaspersky, trata de deshabilitarlo y correr nuevamente el ejemplo.&nbsp; Si esto no funciona revisa el estado de tus licencias de LabVIEW y de Matlab, probablemente tengas que reinstalar el programa y/o activar las licencias. �Qu� versi�n de LabVIEW y Matlab tienes? �El comportamiento es el mismo con el otro ejemplo?, me refiero al de la siguiente dir: labview\examples\scriptnode\Differential Equation.llb\MATLAB Script - Lorenz Diff Eq.vi Si corres este ejemplo �El antivirus tambi�n te pregunta cambiar lo de los registros?, ser�a bueno contactar a Mathworks para saber c�mo reconfigurar nuevamente los registros de Matlab ...

some problems of codes of MATLAB 7.0 working on MATLAB 6.5
I have used MATLAB for few hours.So I don't know the differences between version 6.5 and 7.0.I want to use some codes of MATLAB 7.0, but they doesn't work in MATLAB 6.5.How to change these codes so that they can work in matlab 6.5.Waiting for your help. Thank you . The codes are like this .I think changing the function findPI may work ,but I don'y know how % PIfun.m % Evaluate a function used to find the PI-line, using Kyle Champley's % method. % % Adam Wunderlich % last update: 5/18/06 function y = PIfun(r,R,h,gamma,x3,sb) temp = R - r*cos(gamma-sb); y = h*((pi - 2*atan(r*sin(gamma-sb)/temp))*(1 + (r^2 - R^2)/ (2*R*temp)) ... + sb) - x3; % find_PI_Line.m % % Find the the parametric interval corresponding to the unique PI-line % passing through the point x for a given helical pitch. % This code implements the method of Kyle Champley. % inputs: P = pitch (cm/turn), R = helix radius, delta_s = s stepsize, x % output: PI = [sb st] % % Adam Wunderlich % last update: 5/18/06 function [PI] = findPI(P,R,delta_s,x) h = P/(2*pi); r = sqrt(x(1)^2+x(2)^2); gamma = atan2(x(2),x(1)); options = optimset('TolX',h*delta_s/100,'FunValCheck','on'); [sb,fval,exitflag] = fzero(@(sb) PIfun(r,R,h,gamma,x(3),sb),... [(x(3)-h*pi)/h,x(3)/h],options); if exitflag ~=1, disp('Error: PI invalid'); end % note that beta=sb in Kyle's formula alphaX = atan(r*sin(gamma-sb)/(R - r*cos(gamma-sb))); st = sb + pi -...

calllib with PSTR crashes Matlab 2009a
Hello! I have the folowing code that crashes Matlab when used with calllib: str= char(zeros(1,256,'int8'));%allocate buffer string [r, fileName] = calllib('dllDialog','OpFileDlg',strIn, uint32(opt)); C function: BOOL OpFileDlg(PSTR str, UINT opt) After a dialog is shown the copy is done from a string array (which contains the file result) via the following function: void DoubleZeroCopy(str, fileName) void DoubleZeroCopy(char* dest, char *source) { UINT i = 0; while(TRUE) { dest[i] = source[i]; if((source[i]== 0)&&(source[i-1]==0)) break; //double null reached i++; } } I make this copy only when i use OK button. The case when i use cancel doesn't crash it. The file path has 44 chracters, but i allocate 256. I'm using WinVista64 and Matlab R2009a 32bits. The crash message i get is: Fault Count: 1 Register State: EAX = 1dd27d50 EBX = 01780000 ECX = 00000000 EDX = 00000000 ESI = 1dd27d48 EDI = 1dd92d80 EBP = 00c2814c ESP = 00c28124 EIP = 77330267 FLG = 00010246 Stack Trace: [0] ntdll.dll:0x77330267(0x01780000, 0x1dd92d80, 0x00c281f4 "lo", 0) [1] ntdll.dll:0x772ff676(0x1dd92d80, 0x1dd92d88, 0x1dd92d88, 1) [2] ntdll.dll:0x772ff285(0x01780000, 0, 0x1dd92d80, 0x00c282c0) [3] kernel32.dll:0x75bc3621(0x01780000, 0, 0x1dd92d88, 0xf7d0a296) [4] MSVCR80.dll:0x73b74c39(0x1dd92d88, 0x00c282d8, 0x0c4f9d2d, 0x1dd92d88) [5] libut.dll:_utFree(0x1dd92...

Incompatible of MAT file for Matlab 6.5.1 and Matlab 7.0
Hi! I have recently installed Matlab 7.0. I have save my simulation results in .MAT file. However, these MAT files can't be opened using Matlab 6.5.1. I encountered problem as follows: ??? Error using ==> load Unable to read MAT file D:\MATLAB7\work\results.mat File may be corrupt. How can I solve this problem? Thanks. Linda Please see here: <http://tx.technion.ac.il/~perryb/matlab7/mat7.pdf> In short, save again as: The new features and enhancements are described in the "Release notes" of Matlab. A new feature that causes incompatibility with previous versions of Matlab is the new encoding of MAT files. Matlab release 14 writes character and figure data to MAT-files using Unicode encoding by default. Unicode encoded MAT-files are not readable by earlier versions of Matlab. If you intend to load your MAT-files created with Matlab release 14, you must override the Unicode default during the save. You can override the default encoding by using the -v6 switch with save and hgsave: save filename -v6 hgsave filename -v6 Hope it helps Linda wrote: > > > Hi! > > I have recently installed Matlab 7.0. > I have save my simulation results in .MAT file. > However, these MAT files can't be opened using Matlab 6.5.1. > > I encountered problem as follows: > > ??? Error using ==> load > Unable to read MAT file D:\MATLAB7\work\results.mat > > File ma...

Matlab segmentation violation (crash) at startup!!?!
Hey there Yesterday, Matlab 6.5 was working great on my machine. This morning when I started it up, and then started Matlab, what I received was a popup window: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Matlab\bin\win32\matlab.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. and the Matlab command window showed the following: ------------------------------------------------------------------------ Segmentation violation detected at Thu Aug 24 21:29:32 2006 ------------------------------------------------------------------------ Configuration: MATLAB Version: 6.5.0.180913a (R13) Operating System: Microsoft Windows XP Window System: Version 5.1 (Build 2600: Service Pack 2) Processor ID: x86 Family 6 Model 14 Stepping 8, GenuineIntel Virtual Machine: Java 1.3.1_01 with Sun Microsystems Inc. Java HotSpot(TM) Client VM (mixed mode) Register State: EAX =3D 00000000 EBX =3D 01ab0160 ECX =3D 00007fff EDX =3D 7c90eb94 ESI =3D 160b5870 EDI =3D 00dfd260 EBP =3D 00dfd250 ESP =3D 00dfd22c EIP =3D 7900ea88 FLG =3D 00010206 Stack Trace: [0] MFC42.DLL:0x7900ea88(0x00dfd260, 0x01ab0020, 0x7909f368, 0x7909d674) [1] MFC42.DLL:0x79065b7e(0x7a541db4 "MatlabCommandState", 0x01ab00e0, 0x01ab0020, 0x7a4fb3c0) [2] uiw.dll:protected: int __thiscall CCmdFrame::CreateToolBar(void)(0x01ab0020, 0x00dfd574, 0x00dfd...

Matlab node crashes LV 8.5
Today, I observed a bizzare phenmenon in LV 8.5, when playing&nbsp;with Matlab Script node. &nbsp; Just open any example from the Example Finder. Rt click on the Script node &amp; Choose&nbsp;Script Server --&gt;&gt; Xmath Script. Now, do a Ctrl + Z [Undo] &amp; LV ll get crashed. &nbsp; See attached pic. Ctrl+Z on Matlab node crashes LV 8.5.PNG: http://forums.ni.com/attachments/ni/170/307698/1/Ctrl+Z on Matlab node crashes LV 8.5.PNG ...

Recent soft computing papers and MATLAB Toolboxes
Dear Colleagues, I would like to call your kind attention to the updated website of the Soft Computing Research Group at the University of Veszprem (Hungary) http://www.fmt.vein.hu/softcomp/ You can download MATLAB Toolboxes: - Fuzzy Clustering MATLAB Toolbox - Genetic Programming MATLAB Toolbox - Interactive Evolutionary Strategy (EASy) MATLAB Toolbox - Constrained Fuzzy Model Identification for the FMID Toolbox independent MATLAB programs related to: - Data mining * Fuzzy clustering based time-series segmentation * Supervised Fuzzy Clustering for the Identification of Fuzzy Classifiers * Fuzzy Modeling with Multidimensional Membership Functions: Grey-Box Identification and Control Design * Compact TS-Fuzzy Models through Clustering and OLS plus FIS Model Reduction * Inconsistency Analysis of Labeled Data * Star plots - MATLAB files for Graphical Representation of trace elements of clinkers - Process control and monitoring * Feedback Linearizing Control Using Hybrid Neural Networks Identified by Sensitivity Approach * Incorporating Prior Knowledge in Cubic Spline Approximation - Application to the Identification of Reaction Kinetic Models * Identification and Control of Nonlinear Systems Using Fuzzy Hammerstein Models - A Simple Fuzzy Classifier based on manuscripts in PDF about - fuzzy model based process control and monitoring - fuzzy clustering and classification - incorporation of a priori knowledge in the identif...

Recent soft computing papers and MATLAB Toolboxes
Dear Colleagues, I would like to call your kind attention to the updated website of the Soft Computing Research Group at the University of Veszprem (Hungary) http://www.fmt.vein.hu/softcomp/ You can download MATLAB Toolboxes: - Fuzzy Clustering MATLAB Toolbox - Genetic Programming MATLAB Toolbox - Interactive Evolutionary Strategy (EASy) MATLAB Toolbox - Constrained Fuzzy Model Identification for the FMID Toolbox independent MATLAB programs related to: - Data mining * Fuzzy clustering based time-series segmentation * Supervised Fuzzy Clustering for the Identification of Fuzzy Classifiers * Fuzzy Modeling with Multidimensional Membership Functions: Grey-Box Identification and Control Design * Compact TS-Fuzzy Models through Clustering and OLS plus FIS Model Reduction * Inconsistency Analysis of Labeled Data * Star plots - MATLAB files for Graphical Representation of trace elements of clinkers - Process control and monitoring * Feedback Linearizing Control Using Hybrid Neural Networks Identified by Sensitivity Approach * Incorporating Prior Knowledge in Cubic Spline Approximation - Application to the Identification of Reaction Kinetic Models * Identification and Control of Nonlinear Systems Using Fuzzy Hammerstein Models - A Simple Fuzzy Classifier based on manuscripts in PDF about - fuzzy model based process control and monitoring - fuzzy clustering and classification - incorpor...

How to release a matrix created in matlab inside mex file.
Dear all. I play around huge matrices with data and when I pass one of them to a mex file, I want to be able to release memory associated with it from inside the mex file. Is this possible? For instance, when I do something like this, it violates memory when called from matlab. Cheers, Pete void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { if (nrhs!=1) { mexPrintf(" - insufficient argument list!\n"); return; } mxArray* xVar=(mxArray*)prhs[0]; mxDestroyArray(xVar); return; } ...

ADLink DAQ card + DAQ Toolbox = MATLAB Crash
Hi, This might be a somewhat specific question-- but if anyone has any experience with using the DAQ toolbox with an ADLink DAQ card, any feedback/experience would be appreciated. We have an ADLink PCI-7300A Rev B high-speed digital I/O card. ADLink has released a MATLAB library + adaptor that allows you to use ADLink DAQ cards with MATLAB's DAQ toolbox. We have installed this library, according to the user manual supplied by ADLink. When we check, in MATLAB, to see that the card is recognized, we get the following, >> hwinfo = daqhwinfo hwinfo = ToolboxName: 'Data Acquisition Toolbox' ToolboxVersion: '2.12 (R2008a)' MATLABVersion: '7.6 (R2008a)' InstalledAdaptors: {5x1 cell} >> adqpters =hwinfo.InstalledAdaptors adqpters = 'mcc' 'mwadlink' 'nidaq' 'parallel' 'winsound' >> ADLINK_INFO = daqhwinfo('mwadlink') ADLINK_INFO = AdaptorDllName: 'C:\ADLINK\DAQ-MTLB\DLL\mwADLINK.dll' AdaptorDllVersion: '1, 2, 0, 0' AdaptorName: 'mwadlink' BoardNames: {'PCI-7300'} InstalledBoardIds: {'0'} ObjectConstructorName: {'' '' ''} Clearly, MATLAB recognizes the ADLink adapter. However, it returns an empty array of object constructors... So when we attempt to create a digitalio object (using MATLAB's DAQ to...

Shall i use the misrosoft Visual c++ code from a m-file generated from matlab in Visual C++ with out matlab runtime environment
undefined ...

VI crashs when calling CIN that calls a Matlab dll by lsb that do casting
The problem: A VI that includes a CIN calls a different DLL that was compiled by Matlab 6.5, using an LSB file that performs type casting for Matlab mxArray type variables. &nbsp; The VI crashs when entering the CIN. It seems the code crashs whenever we attempt to access pointers returned by the Matlab DLL. &nbsp; The same VI with the same LSB and Matlab DLL runs correctly in LabVIEW 7.1.1. The Matlab DLL was compiled via the Matlab MCC command. We also compiled the LSB using LabVIEW 8.5 - Multithreaded DLL + 1 byte alignment, via VC 6.0 - this didn't solve the problem. There are no int64 variables. We tried to remove the complex 128 and float64 variables and change them to float without success. We also compiled the LSB using LabVIEW 8.5 - Singlethreaded* + 1 byte alignment or Debug Singlethreaded + 1 byte alignment - again with no success. &nbsp; I have notice that the lvsbutil.exe from the cintools directory was change in 8.5 comparing his size to 7.1.1 and now it is no longer possible to run it from the command line. Any help on how to use it in labview 8.5? &nbsp; If needed i can post the C source code &nbsp; Thanks &nbsp;Lior Hello JamesR, Thank you for your replay, I tried to to follow you suggestion using the lvsbutil.exe&nbsp;from Labview 8.2.1 (I don't have 8.2) but with no result. The vi is still crashing. I notice that the lvsbutil.exe in Labview 8.2.1 &nbsp;is much smaller than 8.5 or 7.1.1 (196kb) Do you have any more sug...

soft decoding of conv. codes using vitdec matlab func. #2
Hello, Isnt 'unquant' and 'soft' options essentially same?..in both case vitdec takes in "real numbers" as input (ok they are "mapped" in case o 'soft' option)..so can we not use 'unquant' option to carry out sof decoding?...my preliminary results show that 'unquant' option give me 2- db gain over hard decoding... any one having insight please let me know. thanks >Hello, > Isnt 'unquant' and 'soft' options essentially same?..in both cases >vitdec takes in "real numbers" as input (ok they are "mapped" in case of >'soft' option)..so can we not use 'unquant' option to carry out soft >decoding?...my preliminary results show that 'unquant' option give m 2-3 >db gain over hard decoding... >any one having insight please let me know. >thanks > > %%% Yes , u can use 'unquant' as soft decoding. try to implement for k=3 i.e [5 7] and BPSK and at roughly 4 dB u should get BER of 10^-3. Chintan ...

Web resources about - MATLAB FFTW MEX CRASH - comp.soft-sys.matlab

Undocumented Matlab
Undocumented, unsupported and hidden features in Matlab

Matlab Upazila - Wikipedia, the free encyclopedia
... 23°21′N 90°42.5′E  /  23.35°N 90.7083°E  / 23.35; 90.7083 Coordinates : 23°21′N 90°42.5′E  /  23.35°N 90.7083°E  / 23.35; 90.7083 Matlab ...

Open Directory - Science: Math: Software: MATLAB
The MathWorks - Developers of MATLAB, Simulink and Stateflow. Offers products for data analysis, visualization, application development, simulation, ...

MATLAB Mobile on the App Store
Read reviews, compare customer ratings, see screenshots, and learn more about MATLAB Mobile. Download MATLAB Mobile and enjoy it on your iPhone, ...

The Smart Emergency Response System Using MATLAB and Simulink - YouTube
In the aftermath of an earthquake, every second counts for disaster victims. Imagine a system that can locate people quickly and help first responders ...

The A-Z of Programming Languages: MATLAB
What prompted the development of MATLAB?

Matlab: Invalid .NET Framework. Either the specified framework was not found or is not currently supported ...
If you are trying to compile Matlab into .Net framework, you might encounter this message, even though you have the .Net framework installed ...

Matlab edges closer to electronic design automation world
Matlab, one of the world's most widely used products for algorithmic development, has long occupied its own niche far removed from EDA and hardware ...

Can I/How do I use DMTCP with a parallel pool of MATLAB workers? · Issue #223 · dmtcp/dmtcp · GitHub
dmtcp - DMTCP: Distributed MultiThreaded CheckPointing matlab -nodisplay -r "parpool('local',4); parfor i=1:10, pause(1); fprintf('%i ',i); end; ...

Using MATLAB and SDR to Reverse Engineer 433MHz Messages
... so he focused on studying the methodology and the tools available for analyzing 433MHz RF transmission. He describes the process of using MATLAB ...

Resources last updated: 3/30/2016 12:28:39 PM