資源簡介
MATLAB數學建模方法與實踐(第三版)配套程序和數據
代碼片段和文件信息
%%?Wave?Equation?on?a?Square?Domain
%?《MATLAB數學建模方法與實踐》(《MATLAB在數學建模中的應用》升級版),北航出版社,卓金武、王鴻鈞編著.?
%%?Problem?Definition
c?=?1;
a?=?0;
f?=?0;
m?=?1;
%%?Geometry
numberOfPDE?=?1;
model?=?createpde(numberOfPDE);
geometryFromEdges(model@squareg);
pdegplot(model‘EdgeLabels‘‘on‘);?
ylim([-1.1?1.1]);
axis?equal
title?‘Geometry?With?Edge?Labels?Displayed‘;
xlabel?x
ylabel?y
%%?Specify?PDE?Coefficients
specifyCoefficients(model‘m‘m‘d‘0‘c‘c‘a‘a‘f‘f);
applyBoundaryCondition(model‘dirichlet‘‘Edge‘[24]‘u‘0);
applyBoundaryCondition(model‘neumann‘‘Edge‘([1?3])‘g‘0);
%%?Generate?Mesh
generateMesh(model);
figure
pdemesh(model);
ylim([-1.1?1.1]);
axis?equal
xlabel?x
ylabel?y
%%?Create?Initial?Conditions
u0?=?@(location)?atan(cos(pi/2*location.x));
ut0?=?@(location)?3*sin(pi*location.x).*exp(sin(pi/2*location.y));
setInitialConditions(modelu0ut0);
%%?Define?Solution?Times
n?=?31;
tlist?=?linspace(05n);
model.SolverOptions.ReportStatistics?=‘on‘;
result?=?solvepde(modeltlist);
u?=?result.NodalSolution;
%%?Animate?the?Solution
figure
umax?=?max(max(u));
umin?=?min(min(u));
for?i?=?1:n
????pdeplot(model‘XYData‘u(:i)‘ZData‘u(:i)‘Zstyle‘‘continuous‘...
??????????????????‘Mesh‘‘off‘‘XYGrid‘‘on‘‘ColorBar‘‘off‘);
????axis([-1?1?-1?1?umin?umax]);?
????caxis([umin?umax]);
????xlabel?x
????ylabel?y
????zlabel?u
????M(i)?=?getframe;
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha10\
?????文件????????1417??2018-06-18?15:15??程序_MATLAB數學建模方法與實踐_卓金武等\Cha10\WaveEquation.m
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha11\
?????文件?????????726??2018-06-18?15:17??程序_MATLAB數學建模方法與實踐_卓金武等\Cha11\AHP.m
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha11\E11_1_MuFactorSelectStocks\
?????文件?????????770??2018-06-18?15:17??程序_MATLAB數學建模方法與實踐_卓金武等\Cha11\E11_1_MuFactorSelectStocks\Mu_factor_regression_model1.m
?????文件??????371710??2014-09-15?17:25??程序_MATLAB數學建模方法與實踐_卓金武等\Cha11\E11_1_MuFactorSelectStocks\SampleA1.xlsx
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha12\
?????文件????????1920??2018-06-18?15:17??程序_MATLAB數學建模方法與實踐_卓金武等\Cha12\CA.m
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\
?????文件??????108544??2014-07-03?12:47??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\2002CUMCM?B題??彩票中的數學.doc
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\P13-1\
?????文件????????1782??2014-12-09?21:53??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\P13-1\calculate_probability.m
?????文件????????1756??2014-12-09?21:53??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\P13-1\cpiao.m
?????文件???????11021??2018-06-18?15:18??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\P13-1\main.m
?????文件????????4219??2014-12-09?21:53??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\P13-1\nonlcon.m
?????文件???????????9??2014-12-09?21:53??程序_MATLAB數學建模方法與實踐_卓金武等\Cha13\P13-1\_desktop.ini
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha14\
?????文件??????959488??2014-07-03?12:47??程序_MATLAB數學建模方法與實踐_卓金武等\Cha14\2003CUMCM?B題.doc
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha14\P14-1\
?????文件????????6209??2018-06-18?15:19??程序_MATLAB數學建模方法與實踐_卓金武等\Cha14\P14-1\main1401.m
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\
?????文件?????1548288??2014-07-03?12:47??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\2004CUMCM?A題.doc
?????文件???????61710??2014-07-03?12:47??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\2004CUMCM?A題數據.rar
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\P15-1\
?????文件????????4343??2018-06-18?15:21??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\P15-1\main1501.m
?????目錄???????????0??2018-06-18?15:32??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\P15_2\
?????文件?????????337??2014-10-09?22:05??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\P15_2\fGAPLP.m
?????文件?????????606??2018-06-18?15:22??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\P15_2\main1502.m
?????文件?????????455??2014-07-03?12:47??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\P15_2\myfplotcircleGA.m
?????文件?????????109??2014-10-09?22:11??程序_MATLAB數學建模方法與實踐_卓金武等\Cha15\重要說明.txt
............此處省略225個文件信息
評論
共有 條評論