MATLAB未定义变量example,小虫求助“ 未定义函数或变量 'Beam_InputData547'。
小虫刚学习MATLAB,现正在学习《Matlab有限元结构动力学分析与工程应用》,在5.4.3瞬态问题分析。例5.7中按照书本附带的源程序运行提示
未定义函数或变量 'Beam_InputData547'。
出错 EX547 (line 28)
Beam_InputData547; % import the input data for the information of
代码开头部分如下:
%-------------------------------------------------------------------------%
% Example 5.4.7
% To solve transient response of a 2-d frame structure.
% The solution methods are: 1) central difference scheme. 3) Houbolt integration scheme.
% 4) Wilson ?? integration scheme. 5) Newmark integration scheme
% nodal dof: {u1 v1 w1 x1 y1 z1 u2 v2 w2 x2 y2 z2}
% Problem description
% Find the response of a frame structure which is made of three beams of lengths of 4 m,
% 3 m and 4 m, respectively. All beams have cross- section of 0.10 m height by 0.05 m
% width. The elastic modulus is 2.10x10^11 Pa. The frame is subjected to an impulse load
% of amplitude 500 N in the middle of the top beam. One end of the each vertical beam is
% fixed. (see Fig. 5-9 for the element discretization)
% Variable descriptions
% k, m - element stiffness matrix and mass matrix
% kk, mm - system stiffness matrix and mass matrix
% ff - system force vector
% index - a vector containing system dofs associated with each element
% bcdof - a vector containing dofs associated with boundary conditions
% bcval - a vector containing boundary condition values associated with the dofs in 'bcdof'
% dsp - displacement matrix
% vel - velocity matrix
% acc - acceleartion matrix
%--------------------------------------------------------------------------
% (0) input control data
%--------------------------------------------------------------------------
clear; clc;
Beam_InputData547; % import the input data for the information of
% nodes, elements, loads, constraints and materials
Opt_beam=1; % option for type of the beam
% =1 Euler Bernoulli beam
% =2 Timoshenko beam
Opt_mass=2; % option for mass matrix
% =1 consistent mass matrix
% =2 lumped mass matrix
Opt_section=1; % option for type of cross-section
% = 1 rectangular cross-section
% = 2 circular cross-section
TypeMethod=1; % option for selecting the solution method
% = 1 central difference scheme
% = 3 Houbolt integration scheme
% = 4 Wilson integration scheme
% = 5 Newmark integration scheme
Typeload=1; % option for selecting the load type
% = 1 impulse load
% = 2 step load
% = 3 Harmonic load
dt=0.00001; % time step size
ti=0; % initial time
tf=0.200; % final time
nt=fix((tf-ti)/dt); % number of time steps
tt=ti:dt:ti+nt*dt; % generate time samples vector
ac=0.00002; bc=0.00008; % Parameters for proportional damping
al=0; % angle between the reference coordinate system and
% the local coordinate system for the space element
%--------------------------------------------------------------------------
% (1) initialization of matrices and vectors to zero
%--------------------------------------------------------------------------
k=zeros(No_nel*No_dof,No_nel*No_dof); % element stiffness matrix
m=zeros(No_nel*No_dof,No_nel*No_dof); % element mass matrix
kk=zeros(Sys_dof,Sys_dof); % initialization of system stiffness matrix
mm=zeros(Sys_dof,Sys_dof); % initialization of system mass matrix
ff=zeros(Sys_dof,1); % initialization of system force vector
bcdof=zeros(Sys_dof,1); % initializing the vector bcdof
bcval=zeros(Sys_dof,1); % initializing the vector bcval
index=zeros(No_nel*No_dof,1); % initialization of index vector
------------------------------------------------------------------------------------------------------
未定义变量是否可以理解为Beam_InputData547=???
或Beam=input(data547),但在源文件中并未找到相关信息。
另外本章源程序开始第一句均为”Beam_InputData ”
均出现如上问题,恳请大神赐教!!
现将第五章相关内容及程序在附上。。。
错误提示.png
MATLAB未定义变量example,小虫求助“ 未定义函数或变量 'Beam_InputData547'。相关推荐
- bash 函数内部变量_使用源命令将函数和变量导入Bash
bash 函数内部变量 登录Linux Shell时,您将继承特定的工作环境. 的环境中 ,在壳的背景下,这意味着有已经被设置为你的变量,从而确保你的命令工作按预期. 例如, PATH环境变量定义外壳 ...
- python print 变量_0、python 的 print()函数、变量和赋值
Print()函数的用法有以下四种: 无引号.单引号.双引号.三引号. 无引号的用法 print(520) 注意:这里的括号一定要用[英文括号],不然会报错. 在括号内无引号的情况下,括号内放入计算机 ...
- ajax拼接外部变量,在ajax调用中访问函数外部变量的问题
$.getJSON("http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q= ...
- python函数调用另一个函数的变量_python怎么调用另一个函数的变量。不用return
用闭包 再来看看专业的解释:闭包(Closure)是词法闭包(Lexical Closure)的简称,是引用了自由变量的函数.这个被引用的自由变量将和这个函数一同存在,即使已经离开了创造它的环境也不例 ...
- 详解JMeter函数和变量
详解JMeter函数和变量(1) JMeter函数可以被认为是某种特殊的变量,它们可以被采样器或者其他测试元件所引用.函数调用的语法如下: ${__functionName(var1,var2,var ...
- 章节一:print()函数与变量
章节一:print()函数与变量 目录 章节一:print()函数与变量 1. print()函数 1.1 单引号的用法 1.2 双引号的用法 1.3 三引号的用法 1.4 转义字符 2. 变量和赋值 ...
- MATLAB报错:未定义函数或变量
出现这种错误一般是因为定义的函数和当前的工作环境不在一块导致. 一般情况MATLAB工作环境默认为C盘,但我们有时候会将自己编写的函数放在其他盘.当我们调用这个函数是就会出现 未定义函数或变量:''x ...
- matlab拟合未定义函数或变量,关于matlab的未定义函数或变量的问题
1.首先需要知道matlab中查看数据类型函数是class,可以先在命令行窗口中help class.2.在命令行窗口中输入"a=123 class(a)".3.按回车键可以看到变 ...
- 【已解决】MATLAB未定义函数或变量 ‘wavread‘,以及audioread,audiowrite,wavwrite
报错 MATLAB未定义函数或变量 'wavread'. 原因 wavread在当前Matlab版本中废弃,需要改成audioread,同理wavwrite也需要改为audiowrite. 注意 在更 ...
最新文章
- 【解题报告+思路拓展】蓝桥杯 拉马车 2017年C组真题
- linux内核研究(二)
- Windows部署服务WDS实例
- 记一次Springboot启动异常
- UI设计中的弹窗设计素材,技巧快get起来
- 边缘设备上的实时AI人员检测:以实时模式检测视频中的人员
- Android FrameWork——Activity启动过程详解
- 手把手教你搭建FastDFS集群(中)
- 模块ntdll中出现异常eaccessviolation_SAP ERP软件中的物料凭证 MIGO
- React-如何在jsx中自动补全标签(vscode)
- c#迁移文件的时候提示:对路径xxx的访问被拒绝
- 三星android se干啥得,万元安卓机用了3个月,换成三千元的iPhoneSE后,谈谈真实感受...
- java 查看jar包内容_jar文件怎么打开?如何查看jar文件内容?
- linux环境文件或者文件夹打包
- 计算机word降序排列怎么做,WORD表格怎么按照数字降序排列
- umount target is busy
- 蚂蚁金服java年终奖,蚂蚁金服发布年终奖调查结果 超六成人无缘年终奖
- 如何拥有一个免费云服务器
- win10Edge浏览器或第三方浏览器网页字体模糊解决方法
- wps透视表列总计移到顶部_在数据透视表顶部显示总计
热门文章
- 计算机二级Java-综合应用题-(极速倍斩第2版-B1)
- 他们十年发生的那些事,你好奇不?
- 关于Redux到底是个什么鬼
- 加班有多可怕?据统计:程序员平均寿命仅为37.9岁!
- 项目质量管理中的新老7工具
- 3、JavaWeb中Service层的作用、MyBatis的重要组件、mybatis-config.xml中的别名映射、properties配置、#{}和${}的区别、获取插入数据的主键值
- [转帖]中国民间秘术
- linux系统打印机不兼容,linux系统下的打印机无法打印怎么解决?
- 人物专访 | 从《黑客帝国》到《花木兰》的特效,制作人Diana这40年
- 【计算机网络】数据链路层(五)—— 广域网(PPP 协议与 HDLC 协议)