中国汽车工程师之家--聚集了汽车行业80%专业人士 

论坛口号:知无不言,言无不尽!QQ:542334618 

本站手机访问:直接在浏览器中输入本站域名即可 

  • 1378查看
  • 1回复

在matlab编程中总出现下面的问题

[复制链接]

  • TA的每日心情
    无聊
    10-1-2016 13:38
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 15-10-2011 09:51:59 | 显示全部楼层 |阅读模式

    汽车零部件采购、销售通信录       填写你的培训需求,我们帮你找      招募汽车专业培训老师


    程序;function y = QuadraticBarElementStiffness(E, A, L)
    %QuadraticBarElementStiffness   This dunction returns the element
    %stiffness matrix for a quadratic bar with modulus of elasticity E,
    %cross-sectional area A, and length L.This size of  the element stiffness
    %matrix is 3*3.
    y=E*A/(3*L)[7 1 -8; 1 7 -8; -8 -8 16];
    提示出项的问题:Warning: Could not find an exact (case-sensitive) match for
    'QuadraticBarElementstiffness'.
    E:\matlab,\toolbox\75function\QuadraticBarElement\QuadraticBarElementStiffness.m
    is a case-insensitive match and will be used instead.
    You can improve the performance of your code by using exact
    name matches and we therefore recommend that you update your
    usage accordingly. Alternatively, you can disable this warning using
    warning('off','MATLAB:dispatcher:InexactCaseMatch').
    This warning will become an error in future releases.
    ??? Error: File: QuadraticBarElementStiffness.m Line: 6 Column: 12
    Unbalanced or unexpected parenthesis or bracket.,该怎么修改??求高手指点
    

    该用户从未签到

    发表于 15-10-2011 14:52:23 | 显示全部楼层
    貌似表达式不是很清楚,E A L是否是矩阵,(3L)和[]是什么关系,是不是乘,如果是乘要加'*',如果前面的是矩阵,是元素相乘要有'.'
    回复 支持 反对

    使用道具 举报

    快速发帖

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    QQ|手机版|小黑屋|Archiver|汽车工程师之家 ( 渝ICP备18012993号-1 )

    GMT+8, 23-12-2024 09:06 , Processed in 0.421308 second(s), 31 queries .

    Powered by Discuz! X3.5

    © 2001-2013 Comsenz Inc.