matlab 字符相加,字符串相加疑难

我的版本matlab7.0。无法实现字符串相加,请大家给分析是怎么回事。谢谢!

具体如下:

>>  g=sym('y')

g =

y

>> f=sym('x')

f =

x

>> fg=f+g

------------------------------------------------------------------------

Segmentation violation detected at Fri May 08 21:45:57 2009

------------------------------------------------------------------------

Configuration:

MATLAB Version:   7.1.0.246 (R14) Service Pack 3

MATLAB License:   161051

Operating System: Microsoft Windows XP

Window System:    Version 5.1 (Build 2600: Service Pack 3)

Processor ID:     x86 Family 6 Model 7 Stepping 10, GenuineIntel

Virtual Machine:  Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode

Default Charset:  GBK

Register State:

EAX = 12a95940  EBX = 00000001

ECX = 00000000  EDX = 00000000

ESI = 12a95940  EDI = 784637b0

EBP = 00cdbcf8  ESP = 00cdb790

EIP = 12491139  FLG = 00010246

Stack Trace:

[0] maplec.dll:0x12491139(2, 0x00cdc340, 1, 0x00cdc3d0)

[1] libmex.dll:_mexRunMexFile(2, 0x00cdc340, 1, 0x00cdc3d0) + 103 bytes

[2] libmex.dll:private: void __thiscall Mfh_mex::runMexFileWithSignalProtection(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(2, 0x00cdc340, 1, 0x00cdc3d0) + 73 bytes

、、、、、、

[59] bridge.dll:$L86781(0, 0, 0x784d6e58, 0x7c36b71f) + 432 bytes

[60] mcr.dll:public: void __thiscall mcrInstance::mnParser(void)(271289, 0x505c3a43, 0x72676f72, 0x46206d61) + 93 bytes

[61] MATLAB.exe:0x00401ca9(4194304, 0, 271289, 0x012078b8)

[62] MATLAB.exe:0x00403d9f(0x02b6cdfc, 0x7c92d950 "副", 0x7ffd8000, 0xaeb6fce8)

[63] kernel32.dll:0x7c817067(0x00403c1a, 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\LOCALS~1\Temp\matlab_crash_dump.3924

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 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.

Error in ==> maple at 104

[result,status] = maplemex(statement);

Error in ==> sym.maple at 85

[result,status] = maple(statement);

Error in ==> sym.plus at 22

X = maple(A(:),'+',B(:));

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值