wqtclark 发表于 2006-12-16 16:23

Segmentation violation detected 是什么错误?

我在使用MATLAB的符号运算时,对一函数进行定积分时出现以下错误提示.程序中断,不得继续.请各们帮忙分析之:

------------------------------------------------------------------------
       Segmentation violation detected at Sat Dec 16 16:18:03 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 15 Model 15 Stepping 2, AuthenticAMD
Virtual Machine:Java 1.3.1_01 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
    (mixed mode)

Register State:
EAX = 0000d264EBX = 4a160005
ECX = 4a160005EDX = 00000004
ESI = 10f32854EDI = 10f32844
EBP = 00000010ESP = 00dd7410
EIP = 10d6c84bFLG = 00010202

Stack Trace:

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\wangyb\LOCALS~1\Temp\matlab_crash_dump.2680

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 ==> D:\MATLAB6p5\toolbox\symbolic\maplemex.dll
Error in ==> D:\MATLAB6p5\toolbox\symbolic\maple.m
On line 116==> = maplemex(statement);

Error in ==> D:\MATLAB6p5\toolbox\symbolic\@sym\maple.m
On line 74==> = maple(statement);

Error in ==> D:\MATLAB6p5\toolbox\symbolic\@sym\int.m
On line 51==>    r = maple('map','int',f,);

Error in ==> d:\MATLAB6p5\work\dingban2.m
On line 10==> f5=4*int(int(f4,x,0,a*sqrt(1-y^2/b^2)),y,0,b)

>>

pengweicai 发表于 2006-12-16 16:40

估计出错在这个函数上。
f5=4*int(int(f4,x,0,a*sqrt(1-y^2/b^2)),y,0,b)

最好把M文件贴上来。

wqtclark 发表于 2006-12-17 22:36

syms x y a b w0 k n E1 E A H hv D q w f1 f2 f3 f4 f5 f6 f7
%D=E*h^3/12/(1-v^2)
w=w0/(pi/2-1)*(cos((x^2/a^2+y^2/b^2)*pi/2)+pi/2*(x^2/a^2+y^2/b^2-1))
f1=D*(diff(w,x,4)+2*diff(diff(w,x,2),y,2)+diff(w,y,4))
f1=simple(f1)
f2=k*w-q
f3=f1+f2
f4=f3*w/w0*(pi/2-1)
f5=int(int(f4,x,-a*sqrt(1-y^2/b^2),a*sqrt(1-y^2/b^2)),y,-b,b)
%f5=4*int(int(f4,x,0,a*sqrt(1-y^2/b^2)),y,0,b)
%f5=4*int(int(f3,x,0,a*sqrt(1-y^2/b^2)),y,0,b)
%simple(f5)
%pretty(ans)
%f6=solve(f3,w0)

pengweicai 发表于 2006-12-18 10:47

我的提示:

Warning: Explicit integral could not be found.
应该是和被积分函数有关,不能做定积分。
页: [1]
查看完整版本: Segmentation violation detected 是什么错误?