Matlab - Error con svmtrain

 
Vista:

Error con svmtrain

Publicado por MERY (1 intervención) el 03/10/2009 17:04:39
Hola a todos

Me han dicho que tengo que usar un maquina de soporte vectorial (svm) en matlab. Me pasaron para guardarme un "svmtrain.dll" y un "svmpredict.dll". Los he guardado en una carpeta llamada matlab junto con el resto de codigos.

El problema viene cuando los quiero ejecutar. Este es el codigo que escribo en la linea de comandos

>> addpath '../matlab';
>> sigma=1;
>> C=100;
>> model=svmtrain(ylabels, X, ['-s 0 -t 2 -g ', num2str(sigma), ' -c ', num2str(C)]);

siendo "ylables" unas etiquetas y "X" una matriz de datos. El error que me sale es :

------------------------------------------------------------------------
Segmentation violation detected at Sat Oct 03 16:59:37 2009
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.0.0.19920 (R14)
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 15 Stepping 13, GenuineIntel
Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997

Register State:
EAX = 00000000 EBX = 00000000
ECX = 00000001 EDX = 00000000
ESI = 00000000 EDI = 12a00020
EBP = 00cddff4 ESP = 00cddfbc
EIP = 6e48b704 FLG = 00010246

Stack Trace:
[0] svmtrain.dll:0x6e48b704(0x013d2a50, 0x013e6010, 0, 2)
[1] svmtrain.dll:0x6e48bf4b(1, 0x00cde71c, 3, 0x00cde77c)
[2] libmex.dll:_mexRunMexFile(1, 0x00cde71c, 3, 0x00cde77c) + 71 bytes
[3] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00cde71c, 3, 0x00cde77c) + 157 bytes
[4] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00cde71c, 3, 0x00cde77c) + 273 bytes
[5] m_interpreter.dll:_inDispatchFromStack(653, 0x14442640 "svmtrain", 1, 3) + 891 bytes
[6] m_interpreter.dll:enum opcodes __cdecl inDispatchCall(char const *,int,int,int,int *,int *)(0x14442640 "svmtrain", 653, 1, 3) + 111 bytes
[7] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *)(2, 0, 0, 0) + 2411 bytes
[8] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *)(2, 0, 0, 0) + 272 bytes
[9] m_interpreter.dll:_inInterPcode(2, 0x7876f2d8, 0, 0) + 69 bytes
[10] m_interpreter.dll:enum inExecutionStatus __cdecl in_local_call_eval_function(int *,struct _pcodeheader *,int *,struct mxArray_tag * * const,enum inDebugCheck)(0x00cdf2c8, 0x00cdf3bc, 2, 0x10ef8010 "model=svmtrain(ylabels, X, ['-s ..") + 162 bytes
[11] m_interpreter.dll:$L72592(0x7876f2d8, 0x10ef8010 "model=svmtrain(ylabels, X, ['-s ..", 83, 0) + 196 bytes
[12] m_interpreter.dll:enum inExecutionStatus __cdecl inEvalCmdWithLocalReturnandtype(char const *,int *,enum inDebugCheck)(0, 2, 1, 0x00cdf44c "ôôÍ") + 86 bytes
[13] m_interpreter.dll:_inEvalCmdNoEnd(0x10ef8010 "model=svmtrain(ylabels, X, ['-s ..", 0x00cdf4e4, 0x00cdf4a0, 0x014c5c90) + 16 bytes
[14] bridge.dll:_mnParser(0x7c80b741, 0x014c5c90, 0, 0) + 431 bytes
[15] mcr.dll:public: void __thiscall mcrInstance::mnParser(void)(271243, 0x4d5c3a46, 0x616c7461, 0x5c375f62) + 87 bytes
[16] MATLAB.exe:0x00401d2f(4194304, 0, 271243, 0x014c5c90)
[17] MATLAB.exe:0x00403e45(3342386, 3670069, 0x7ffd7000, 0x8054b6ed)
[18] kernel32.dll:0x7c817077(0x00403cc0 "jth(U@", 0, 0, 0)

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

If it is an official MathWorks function, please
follow these steps in reporting this problem to The MathWorks so
that we have the best chance of correcting it:

1. Send this crash report to [email protected] for automated analysis.
For your convenience, this information has been recorded in:
C:\DOCUME~1\Usuario\CONFIG~1\Temp\matlab_crash_dump.4064

2. Also, if the problem is reproducible, send the crash report to
[email protected] along with:
- A specific list of steps that will reproduce the problem
- Any M, MEX, MDL or other files required to reproduce the problem
- Any error messages displayed to the command window
A technical support engineer will contact you with further information.

Thank you for your assistance. Please save your workspace and restart
MATLAB before continuing your work.

Da igual como ponga los datos, incluso si no pongo los opcionales me sigue saliendo el mismo error. No se si me falta algun comando o no. ¿Alguien me podria ayudar? :)
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder