⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p3_26.m

📁 Advanced Engineering Mathematics using MATLAB by Harman, Dabney, Richert,书中全部源码
💻 M
字号:
% P3_26.M  Use a Hilbert matrix (3X3)to show ill conditioning %  Answer to A*x=b is x=[1 1 1]%  Echo is turned on so there is a lot of displayecho on					   % Use echo off to suppress lines	format rat                               Aill=[1 1/2 1/3;1/2 1/3 1/4;1/3 1/4 1/5];Aill  % Display Aill with rational fracts.bill=[11/6 13/12 47/60]';xill=Aill\bill;                            % MATLAB result    pause%format short				   % This can be misleading	xillformat long e	      	                   % Look at error more closelyxillxerror=[1 1 1]'-xillcondno=cond(Aill)%%  Experiment a bit with other Hilbert matrices using command hilb.%  Solve A*x=b with "good" system (condition number about 1) to see%   that MATLAB error can be much smaller %

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -