Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

Vincent Sim

@Vincent Sim
About
Posts
10
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • about cov and eig
    V Vincent Sim

    hi everybody, does anyone of you all know how to write covariance matrix and eig function in Visual C++? or anyone of you noe any website got the Visual C++ maths function algorithm free for use? thank you very much. vincent sim

    C / C++ / MFC c++ algorithms tutorial question

  • VC++ : linking problems
    V Vincent Sim

    hi everybody, I am doing one C++ programming and facing some problems. Linking... msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main matlabwizard.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. can anyone please help me to solve this problem? thank you very much. HAPPY NEW YEAR 2004 ~! vincent sim

    C / C++ / MFC help c++ question

  • C++ programming problems
    V Vincent Sim

    mwArray is the variable declaration used for MATLAB C++ LIBRARY. merry xmas , kuphryn vincent sim

    C / C++ / MFC c++ help question

  • C++ programming problems
    V Vincent Sim

    I am doing a c++ program and i met some problems in order to call the declaration function. what should I do in order to call the implementation function properly? Thank you for you all helping. in the declaration part,..... mxArray * mlfImproved_DA1(mxArray * * targets, mxArray * train_features, mxArray * params) { int nargout = 1; mxArray * features = mclGetUninitializedArray(); mxArray * targets__ = mclGetUninitializedArray(); mlfEnterNewContext(1, 2, targets, train_features, params); if (targets != NULL) { ++nargout; } features = Mimproved_DA1(&targets__, nargout, train_features, params); mlfRestorePreviousContext(1, 2, targets, train_features, params); if (targets != NULL) { mclCopyOutputArg(targets, targets__); } else { mxDestroyArray(targets__); } return mlfReturnValue(features); } in the main program...... mwArray *features; mwAarray **targets; //109 features = mlfImproved_DA1( targets, x, m1 ); //110 …………….. after Compiling... matlabfunction.cpp C:\foo\matlabwizard\matlabfunction.cpp(109) : error C2065: 'mwAarray' : undeclared identifier C:\foo\matlabwizard\matlabfunction.cpp(109) : error C2100: illegal indirection C:\foo\matlabwizard\matlabfunction.cpp(110) : error C2664: 'mlfImproved_DA1' : cannot convert parameter 1 from 'class mwArray' to 'struct mxArray_tag ** ' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Error executing cl.exe. matlabfunction.obj - 3 error(s), 0 warning(s) Vincent Sim

    C / C++ / MFC c++ help question

  • Matlab C++
    V Vincent Sim

    i m doing matlab c++ programming and I met some problems which I cannot solve. to consider [features, targets] = improved_DA1(x, [cluster,0.95]); in matlab.... what should i do in order to call the [cluster,0.95] in Matlab C++ ? i did try to use mwArray(cluster , 0.95) and i get the following compiling result: matlabwizard\matlabfunction.cpp(102) : error C2665: 'mwArray::mwArray' : none of the 21 overloads can convert parameter 1 from type 'class mwArray' C:\foo\matlabwizard\matlabfunction.cpp(103) : error C2664: 'matlabmain' : cannot convert parameter 1 from 'class mwArray' to 'int' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called can anyone help me? thank you very much Matlab C++ newbie

    C / C++ / MFC c++ help question

  • link error: msvcirt.dll
    V Vincent Sim

    i have met some problems when i try to write the matlab c++ programming. after i finished my program and tried to compile in MSVC++ 6.0 ....... LINK : fatal error LNK1104: cannot open file "msvcirt.dll" what should i do to settle this linking problem? thank you for ur all helping vincent sim

    C / C++ / MFC help c++ question

  • MATLAB C++ problems
    V Vincent Sim

    hi everybody, I followed completely the example http://www.mathworks.com/support/solutions/data/27671.shtml

    in reference with the website tutorial method,
    http://www.mathworks.com/support/solutions/data/27671.shtml thank you for your all helping Vincent Sim

    C / C++ / MFC help tutorial question c++ com

  • matlab C++ , help ~!
    V Vincent Sim

    hi everybody, I followed completely the example http://www.mathworks.com/support/solutions/data/27671.shtml

    in reference with the website tutorial method,
    http://www.mathworks.com/support/solutions/data/27671.shtml thank you for your all helping :) vincent sim

    C / C++ / MFC help tutorial question c++ com

  • MATLAB C++ problems, help~!
    V Vincent Sim

    hi everybody, i am facing some matlab c++ problems. i am looking for some solutions for them. anybody can help me? thank you very much. :) p/s: thank you Jwood for your information. Problem 1: MATLAB SOURCE CODE: [features, targets] = improved_DA1(x, [cluster,0.95]); MATLAB C++ CONVERSION: mwArray cluster ; improved_DA(x, empty(cluster,0.95)); after compiling,…… D:\others\im\me.cpp(116) : error C2660: 'empty' : function does not take 2 parameters Problem 2: MATLAB C++ CONVERSION: I3=uint8(I2); After compiling,……. D:\others\im\me.cpp(137) : error C2065: 'uint8' : undeclared identifier Problem 3: MATLAB SOURCE CODE: Smu=zeros(1,Nmu); for i=1:Ncent, Smu(i) = sum(std(train_features(:,find(label == i))')); MATLAB C++ CONVERSION: Smu = zeros(1,Nmu); for (i = 1 ; i<=Ncent ; i++) { /*232*/ Smu(i) = sum(std(train_features(:,find(label == i))')); } after compiling,….. D:\others\im\me.cpp(232) : error C2001: newline in constant Problem 4: MATLAB C++: …………… double Tmin; mwArray T; Nmu = params(1); epsi = params(2); /*167*/ T= 3*max(eig(cov(train_features',1)')); //Initial temperature Tmin = 0.01; …………. After compiling……. D:\others\im\me.cpp(167) : fatal error C1057: unexpected end of file in macro expansion vincent sim

    C / C++ / MFC help c++ question

  • need some help for MATLAB C++
    V Vincent Sim

    hi everybody, I am newbie in matlab C++. I am facing some problems during my work. I followed the Matlab manual in the mathworks website and wrote the code like this: --->> mwArray A = 5; int i, j = A; for (i=0; i < j; i++) cout << "Counting: " << i << endl; after compiling, the visual C++ studio shows d:\others\im\me.cpp(29) : error C2440: 'initializing' : cannot convert from 'class mwArray' to 'int' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called there is another problem: i wrote in MATLAB C++ mArray x; mArray X1; X1 = x(1,colon()); max1=max(X1); mwArray X2; X2 =x(2,colon()); max2=max(X2); max3=max(max1,max2); after compiling, D:\others\im\me.cpp(99) : warning C4003: not enough actual parameters for macro 'max' D:\others\im\me.cpp(99) : error C2059: syntax error : ')' D:\others\im\me.cpp(103) : warning C4003: not enough actual parameters for macro 'max' D:\others\im\me.cpp(103) : error C2059: syntax error : ')' D:\others\im\me.cpp(105) : error C2440: '?' : cannot convert from 'class mwArray' to 'bool' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called D:\others\im\me.cpp(105) : fatal error C1903: unable to recover from previous error(s); stopping compilation I would like to know how I can solve the above-mentioned problems. Thank you for your guidance. I am using MATLAB 6.1 , MS Visual C++ 6.0 , Window 2000 vincent sim

    C / C++ / MFC c++ help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups