phap.m
来自「This is MATLAB program」· M 代码 · 共 25 行
M
25 行
function y=Phap(x,params)
% Anh - short term design stress - strain curve for normal weight concrete.
% Anh(X,PARAMS) return a matrix which is the Anh at X.
% BUI DUC CHINH,10 - 5 -2000.
% Ver 1.03.
if nargin ~=2,
error('Three arguments are required by Anh.');
elseif length(params)<4
error('Anh needs at least 4 parameters.');
end
a=params(1);
b=params(2);
c=params(3);
d=params(4);
y=ones(size(x))*d;
index1=find(x<=a);
if ~isempty(index1),
y(index1)=250*d*x(index1).*(4-x(index1)*1000);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?