Chebyshev-Pade Algorithm逼近

function [ahat,bhat]=chebyshevpade(f,tol) %see more go to www.matlabsky.cn %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% chebyshevpade.m%% Chebyshev-Pade Algorithm%% This script takes the function f(x) sampled at the Chebyshev-Gauss-Lobatto % nodes and compu...
2008-12-19 16:35 | 阅读 3200 次 | 评论 1 条

Matlab中圆台绘制的实现

function [Cone,EndPlate1,EndPlate2] = Cone(X1,X2,R,n,cyl_color,closed,lines)% %see more information go to www.matlabsky.cn% This function constructs a cylinder connecting two center points % % Usage :% [Cone,EndPlate1,EndPlate2] = Cone(X1,X2,R,n,cyl_color,closed,lines)% % Cone-------Handle o...
2008-12-19 16:34 | 阅读 5848 次 | 评论 1 条

Matlab中指数拟合源代码

function s=exp2fit(t,f,caseval,options) %for more information go to www.matlabsky.cn % exp2fit solves the non-linear least squares problem% of the specific exponential functions:% --- caseval = 1 ----% f=s1+s2*exp(-t/s3)% ------------------%% --- caseval = 2 ----% f=s1*(1-exp(-t/s2)) %i....
2008-12-19 16:33 | 阅读 12929 次 | 评论 0 条

图论Prime算法Matlab源代码

%Prims Algorithm%coded by Vikramaditya V. Kundur %more information www.matlabsky.cn clcfid = fopen('testfile1.txt', 'r'); % Input file%Input file should be in the form of a text file.%5 %order of matrix%0 2 3 4 0%2 0 1 2 5%3 1 0 1 2%4 2 1 0 2%0 5 2 2 0l = fscanf(fid, '%g %g...
2008-12-19 16:31 | 阅读 5646 次 | 评论 0 条

Matlab有理式多项式拟合

function [N, D] = ratpolyfit(x,y,kn,kd)% Ratpolyfit Rational Polynomial Fitting%% This programs finds 2 polynomials N(x) and D(x),% of user given order kn and kd respectively,% such that N(xi)/D(xi) ~= y(xi) in a least squares sense.%%usage: [N, D] = ratpolyfit(x, y, kn, kd)%%note: kn and kd...
2008-12-19 16:30 | 阅读 3216 次 | 评论 0 条

Dijkstr最短路径搜索Matlab源代码

function [sp, spcost] = dijkstra(matriz_costo, s, d)% This is an implementation of the dijkstra磗 algorithm, wich finds the % minimal cost path between two nodes. It磗 supoussed to solve the problem on % possitive weighted instances. % the inputs of the algorithm are:%farthestNode: the farthest no...
2008-12-19 16:27 | 阅读 7016 次 | 评论 0 条

Matlab中如何实现绘制任意圆柱

本代码实现了,由两点和半径绘制空间任意圆柱 function [Cylinder EndPlate1 EndPlate2] = cylinder3(X1,X2,r,n,cyl_color,closed,lines)%% This function constructs a cylinder connecting two center points % % Usage :% [Cylinder EndPlate1 EndPlate2] = cylinder3(X1+20,X2,r,n,'r',closed,lines)% % Cylinder-------Handle of the...
2008-12-19 16:26 | 阅读 7320 次 | 评论 0 条
浏览135111次