MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 关于用matlab作应力云图的一个问题 (https://www.labfans.com/bbs/showthread.php?t=8281)

teleiwei 2009-05-12 17:16

关于用matlab作应力云图的一个问题
 
1 个附件
我将节点坐标和节点应力放在文件“joint and stress.xls”中,见附件。文件中第一列为x坐标,第二列为y坐标,第三列为应力值,共31752行。我希望将数据读入后,根据节点坐标和应力值作应力云图。
以下是我写的代码
A=xlsread('E:\joint and stress.xls')
x=A(1:31752,1)
y= A(1:31752,2)
z= A(1:31752,3)
contourf(x,y,z,20)

运行错误,
Error: Missing operator, comma, or semicolon
我不知道如何改正,请大家指导
刚接触matlab,请大家帮忙,谢谢!


所有时间均为北京时间。现在的时间是 03:06

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.