声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 5459|回复: 3

[编程技巧] Segmentation violation detected 是什么错误?

[复制链接]
发表于 2006-12-16 16:23 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我在使用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 = 0000d264  EBX = 4a160005
  ECX = 4a160005  EDX = 00000004
  ESI = 10f32854  EDI = 10f32844
  EBP = 00000010  ESP = 00dd7410
  EIP = 10d6c84b  FLG = 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  ==> [result,status] = maplemex(statement);

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

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

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)

>>
回复
分享到:

使用道具 举报

发表于 2006-12-16 16:40 | 显示全部楼层
估计出错在这个函数上。
f5=4*int(int(f4,x,0,a*sqrt(1-y^2/b^2)),y,0,b)

  最好把M文件贴上来。
 楼主| 发表于 2006-12-17 22:36 | 显示全部楼层
syms x y a b w0 k n E1 E A H h  v 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)
发表于 2006-12-18 10:47 | 显示全部楼层
我的提示:

Warning: Explicit integral could not be found.
  应该是和被积分函数有关,不能做定积分。
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-14 21:56 , Processed in 0.067626 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表