资源简介
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实现超外差接收系统的动态仿真
相关资源
- MATPOWER中文手册
- 自己编写卷积程序 matlab
- 小波熵matlab程序
- matlab实现图像亮度变换的源代码
- 求图像二维灰度直方图的matlab程序
- 无线传感器网络中LEACH路由协议的MA
- S变换——Matlab(S变换函数,一个)
- NSGA-II matlab 遗传算法源码
- 基于FFT的频率估计matlab程序
- 直接反投影法重建CT图像
- matlab仿真mimo
- Elman神经网络
- WSN DV-Hop定位的Matlab仿真代码
- 基于MATLAB的通信系统仿真 文中代码
- 蚂蚁聚类算法MATLAB程序
- melp2.4k的编解码程序
- 超全的模式识别Matlab源程序,涉及几
- MATLAB风机的demo
- adaboost详解及matlab
- PLC控制的matlab仿真
- LMS自适应波束形成matlab代码
-
MATLAB神经网络与simuli
nk视频教程 - LMI+工具箱介绍—matlab
- 中点画线法matlab代码
- matlab模糊聚类算法进行图像分割的源
- 彩色图像分割MATLAB
- 蚁群算法图像分割
- 盲源分离matlab程序
- 电力系统暂态仿真 MATLAB
- 结合查找法做的旋转不变性LBP特征提
评论
共有 条评论