家园站务版 #164582 层求助

用Matlab求微积分出问题。

楼主 · 1 楼
我用的是Matlab6.5.1,昨天照着一个课件想求导数和积分,结果出现问题,请大家帮忙看看。谢谢!
求导数的:
>> clear all
>> x=sym('x');
>> t=sym('t');
>> diff(sin(x*x))
error_msg : socket 3348 listen failed (err=10013).

??? Maple initialization failed.

Error in ==> F:\MATLAB\toolbox\symbolic\maplemex.dll
Error in ==> F:\MATLAB\toolbox\symbolic\mapleinit.m
On line 47 ==> maplemex(maplelib,0);

Error in ==> F:\MATLAB\toolbox\symbolic\maplemex.dll
Error in ==> F:\MATLAB\toolbox\symbolic\maple.m
On line 101 ==> [result,status] = maplemex(statement);

Error in ==> F:\MATLAB\toolbox\symbolic\@sym\maple.m
On line 74 ==> [result,status] = maple(statement);

Error in ==> F:\MATLAB\toolbox\symbolic\@sym\mtimes.m
On line 13 ==> X = maple(A,'*',;
求积分的:
>> clear
>> syms x;
>> int(1/(1+x*x))

------------------------------------------------------------------------
Segmentation violation detected at Thu Aug 04 10:02:49 2005
------------------------------------------------------------------------

Configuration:
MATLAB Version: 6.5.1.199709 (R13) Service Pack 1
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600)
Processor ID: x86 Family
15 Model 1 Stepping 3, GenuineIntel
Virtual Machine: Java 1.4.2_02 with Sun Microsystems Inc. Java HotSpot™ Client VM
(mixed mode)

Register State:
EAX = 013b3400 EBX = 013b3400
ECX = 00000000 EDX = 00000000
ESI = 0146b3b8 EDI = 00000000
EBP = 00dfa5fc ESP = 00dfa094
EIP = 0ad71139 FLG = 00010202

Stack Trace:
[0] maplec.dll:0x0ad71139(2, 0x00dfa9a8, 1, 0x013b3400 "(x)*(x);")
[1] libmex.dll:_mexRunMexFile(2, 0x00dfa9a8, 1, 0x00dfaaac) + 71 bytes
[2] m_interpreter.dll:void __cdecl inCallMexFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const,void (__cdecl*)(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const),struct _mex_context *,struct mexfiles *)(2, 0x00dfa9a8, 1, 0x00dfaaac) + 476 bytes
[3] m_interpreter.dll:void __cdecl inRunMexFile(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const,struct mexfiles *)(2, 0x00dfa9a8, 1, 0x00dfaaac) + 126 bytes
[4] m_interpreter.dll:void __cdecl inExecMexFile(int,int,struct mxArray_tag * * const,struct MATLAB_Function_tag *)(2, 1, 0x00dfaaac, 0x014d9908) + 82 bytes
[5] m_interpreter.dll:_inExecFunction(2, 1, 0x00dfaaac, 0x014d9908) + 38 bytes
[6] m_interpreter.dll:_inMMexExecute(556, 0x014d9908, 2, 1) + 533 bytes
[7] m_interpreter.dll:enum opcodes __cdecl inMMex(char const *,int,int,int,int *,int *)(0x0f1
17bf0 "maplemex", 0, 2, 1) + 94 bytes
[8] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,struct inPcodeNest_tag volatile *)(1, 101, 1890, 0x013b3610) + 1982 bytes
[9] m_interpreter.dll:_inInterPcode(1, 0x0f148468, 0x00dfb86c, 1) + 193 bytes
[10] m_interpreter.dll:void __cdecl inWord(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const,struct word *,bool)(2, 0x00dfb564, 1, 0x00dfb86c) + 626 bytes
[11] m_interpreter.dll:_inWordsj(2, 0x00dfb564, 1, 0x00dfb86c) + 866 bytes
[12] m_interpreter.dll:bool __cdecl inRunMP(int,struct mxArray_tag * *,int,struct mxArray_tag * *,struct word *,bool)(2, 0x00dfb564, 1, 0x00dfb86c) + 144 bytes
[13] m_interpreter.dll:void __cdecl inExecMFile(int,int,struct mxArray_tag * * const,struct MATLAB_Function_tag *)(2, 1, 0x00dfb86c, 0x0f148468) + 70 bytes
[14] m_interpreter.dll:_inExecFunction(2, 1, 0x00dfb86c, 0x0f148468) + 38 bytes
[
15] m_interpreter.dll:_inMMexExecute(544, 0x0f148468, 2, 1) + 533 bytes
[
16] m_interpreter.dll:enum opcodes __cdecl inMMex(char const *,int,int,int,int *,int *)(0x0f46d9e4 "maple", 0, 2, 1) + 94 bytes
[
17] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,struct inPcodeNest_tag volatile *)(1, 74, 984, 0x013ae6d8) + 1982 bytes
[18] m_interpreter.dll:_inInterPcode(1, 0x0f
1538e0, 0x00dfc62c, 3) + 193 bytes
[19] m_interpreter.dll:void __cdecl inWord(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const,struct word *,bool)(1, 0x00dfc324, 3, 0x00dfc62c) + 626 bytes
[20] m_interpreter.dll:_inWordsj(1, 0x00dfc324, 3, 0x00dfc62c) + 866 bytes
[21] m_interpreter.dll:bool __cdecl inRunMP(int,struct mxArray_tag * *,int,struct mxArray_tag * *,struct word *,bool)(1, 0x00dfc324, 3, 0x00dfc62c) + 144 bytes
[22] m_interpreter.dll:void __cdecl inExecMFile(int,int,struct mxArray_tag * * const,struct MATLAB_Function_tag *)(1, 3, 0x00dfc62c, 0x0f
1538e0) + 70 bytes
[23] m_interpreter.dll:_inExecFunction(1, 3, 0x00dfc62c, 0x0f
1538e0) + 38 bytes
[24] m_interpreter.dll:_inMMexExecute(544, 0x0f
1538e0, 1, 3) + 533 bytes
[25] m_interpreter.dll:enum opcodes __cdecl inMMex(char const *,int,int,int,int *,int *)(0x0141812c "maple", 0, 1, 3) + 94 bytes
[26] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,struct inPcodeNest_tag volatile *)(1, 13, 300, 0x013b40a8) + 1982
bytes
[27] m_interpreter.dll:_inInterPcode(1, 0x0f144790, 0x00dfd4dc, 2) + 193 bytes
[28] m_interpreter.dll:void __cdecl inWord(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const,struct word *,bool)(1, 0x00dfd0e4, 2, 0x00dfd4dc) + 626 bytes
[29] m_interpreter.dll:_inWordsj(1, 0x00dfd0e4, 2, 0x00dfd4dc) + 866 bytes
[30] m_interpreter.dll:bool __cdecl inRunMP(int,struct mxArray_tag * *,int,struct mxArray_tag * *,struct word *,bool)(1, 0x00dfd0e4, 2, 0x00dfd4dc) + 144 bytes
[31] m_interpreter.dll:void __cdecl inExecMFile(int,int,struct mxArray_tag * * const,struct MATLAB_Function_tag *)(1, 2, 0x00dfd4dc, 0x0f144790) + 70 bytes
[32] m_interpreter.dll:_inExecFunction(1, 2, 0x00dfd4dc, 0x0f144790) + 38 bytes
[33] m_interpreter.dll:_inInternalFcnOverload(206, 1, 206, 0x00dfd4dc) + 65 bytes
[34] m_interpreter.dll:_inExecuteInternalFcn(206, 2, 1, 0) + 622 bytes
[35] m_interpreter.dll:enum opcodes __cdecl inIntFcn(enum opcodes,int,int,int)(77, 0x010000ce, 1, 2) + 90 bytes
[36] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,struct inPcodeNest_tag volatile *)(2, 0, 0, 0x013b3d18) + 2554 bytes
[37] m_interpreter.dll:_inInterPcode(2, 0x00dfdc54, 0, 0) + 193 bytes
[38] m_interpreter.dll:enum inExecutionStatus __cdecl in_local_call_eval_function(int *,struct _m_parser_interface *,struct _pcodeheader *,int *,struct mxArray_tag * * const,enum inDebugCheck)(0, 0x7a8afa78, 0x00dfdc54, 0x00dfdcf8) +
174 bytes
[39] m_interpreter.dll:_inEvalStringWithIsVarFcn(0x0f1880a0 "int(1/(1+x*x))\n",
15, 0, 0) + 531 bytes
[40] m_interpreter.dll:_inEvalString(0x0f1880a0 "int(1/(1+x*x))\n",
15, 0, 0) + 50 bytes
[41] m_interpreter.dll:enum inExecutionStatus __cdecl inEvalCmdWithLocalReturnandtype(char const *,int *,enum inDebugCheck)(0x0f1880a0 "int(1/(1+x*x))\n", 0, 2, 0x00dfde30) + 68 bytes
[42] m_interpreter.dll:_inEvalCmdNoEnd(0x0f1880a0 "int(1/(1+x*x))\n", 1, 0x0047f62f, 11) +
16 bytes
[43] matlab.exe:_mnParser(0, 271241, 0, 48) + 1001 bytes
[44] matlab.exe:_WinMain@16(4194304, 0, 271241, 1) + 3864 bytes
[45] matlab.exe:_WinMainCRTStartup(0, 1, 0x7ffdf000, 0x00450058) + 308 bytes
[46] kernel32.dll:0x77e5eb69(0x00471aae, 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 segv@mathworks.com for automated analysis.
For your convenience, this information has been recorded in:
C:\DOCUME~1\ADMINI~1.KUN\LOCALS~1\Temp\matlab_crash_dump.2784

2. Also, if the problem is reproducible, send the crash report to
support@mathworks.com 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 prior to this crash report
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.

Error in ==> F:\MATLAB\toolbox\symbolic\maplemex.dll
Error in ==> F:\MATLAB\toolbox\symbolic\maple.m
On line 101 ==> [result,status] = maplemex(statement);

Error in ==> F:\MATLAB\toolbox\symbolic\@sym\maple.m
On line 74 ==> [result,status] = maple(statement);

Error in ==> F:\MATLAB\toolbox\symbolic\@sym\mtimes.m
On line 13 ==> X = maple(A,'*',;

看样子都是Maple的问题,可究竟是哪不对啊?谢谢!
2 楼
解决了!让防火墙允许Matlab访问网络就行了