资源简介
MATLAB语言,应用里米兹算法做最佳一致逼近

代码片段和文件信息
% Author : Huapeng Zhou
% Address : 2#221A Zijing Department Tsinghua University Beijing China
% Email Address : shodoco@gmail.com
% MY_ERROR is the function of the error between the function you want to
% approximate and the estimated polynomial.
% The first argument x is a row vector of the point(s) ont which you want
% to evaluate the error.If it has only one elementthen it gives the error
% on this point.
% The second argument fun which defines the function that you want to
% approximate is a function handlean inline object in MATLAB6 or an
% anonymous function in MATLAB7.
% The third argument A gives the estimated polynomial coefficents in a
% row array.
function e = my_error(x fun A)
% The polynomial coefficients array make it a column array
A = A(:);
% The argument array make it a column array
x = x(:);
% Order of the polynomial equals to the number of coefficients minus one
order = length(A)-1;
% The powers out in a row and repeated for each argument to form a matrix
powers = ones(length(x)1)*[0:order];
% To evaluate the polynomial at the argument array
poly_temp = (x * ones(1 order + 1)).^powers;
poly_temp = poly_temp * A;
% To get the result of the difference between the function evaluated at the
% argument array and the polynomial evaluated at the argument array
e = feval(fun x) - poly_temp;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5138 2008-11-29 13:56 my_remez_new.m
文件 1242 2008-11-29 14:15 my_test.m
文件 1391 2008-11-29 13:55 my_error.m
文件 1793 2008-11-29 13:56 my_fzero.m
文件 4357 2008-11-29 13:56 my_remez.m
----------- --------- ---------- ----- ----
13921 5
- 上一篇:MATPOWER中文手册
- 下一篇:采用Simuli
nk实现超外差接收系统的动态仿真
相关资源
- 基于小波变换的数字水印算法115024
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
评论
共有 条评论