![](https://csdnimg.cn/release/download_crawler_static/86393141/bg1.jpg)
%% MATLAB Code for Cam-Clay Model
clear all;
%% License
out1=fprintf(' MATLAB CODE FOR SIMULATION OF
MODIFIED CAMCLAY');
out2=fprintf(' Copyright (C) 2011 Krishna Kumar,
University of Cambridge');
out11=fprintf(' The program is distributed
under GNU GPL v 2.0 ');
out12=fprintf(' view license agreement at
http://www.gnu.org/licenses/');
%{
This program is free software: you can redistribute
it and/or modify
it under the terms of the GNU General Public License
as published by
the Free Software Foundation, either version 3 of
the License, or
(at your option) any later version.
This program is distributed in the hope that it will
be useful,
but WITHOUT ANY WARRANTY; without even the implied
warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the
GNU General Public License for more details.
You should have received a copy of the GNU General
Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>');
%}
%% Input Parameters
out3=fprintf('INPUT PARAMETERS FOR MODIFIED
CAMCLAY');
cp=input('Enter the inital Consolidation pressure
(kPa) (eg., 150 kPa) = ');%cp=150;
p0=input('Enter the initial Confining pressure (kPa)
(eg., 150 kPa) = ');%p0=150;
M=input('Enter the value of Critical Friction Anlge
M (eg., 0.95) = ');%M=0.95;
l=input('Enter the value of Lamda
(eg., 0.2) = ');%l=0.2;