上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 25 下一页
摘要: % Purpose:% This program solves for the roots of a quadraticequation% of the form a*x^2 + b*x + c = 0. It calculates theanswers% regardless of the ... 阅读全文
posted @ 2013-03-05 21:40 dreamsyeah 阅读(195) 评论(0) 推荐(0) 编辑
摘要: % Purpose:% This program solves for the roots of a quadraticequation% of the form a*x^2 + b*x + c = 0. It calculates theanswers% regardless of the ... 阅读全文
posted @ 2013-03-05 21:40 dreamsyeah 阅读(473) 评论(0) 推荐(0) 编辑
摘要: jacobi.mfunction tx=jacobi(A,b,imax,x0,tol) %利用jacobi迭代法解线性方程组AX=b,迭%代初值为x0,迭代次数由imax 提供,精确%度由tol 提供del=10^-10; %主对角的元素不能太小,必须大于deltx=[x0] ; n=leng... 阅读全文
posted @ 2013-03-04 17:44 dreamsyeah 阅读(4265) 评论(0) 推荐(0) 编辑
摘要: %计算多项式在【-3,4】区间的微分%多项式为y=x^4-3x^3+7x^2+2x-8x=linspace(-3,4);%产生100 个x 的离散点p=[1 -3 7 2 -8];f=polyval(p,x);subplot(2,1,1);plot(x,f);title('多项式方程');di... 阅读全文
posted @ 2013-03-04 16:38 dreamsyeah 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 原文地址:matlab坐标轴设置作者:王屋农夫a=linspace(1,2,10)plot(a,'--pr','linewidth',1.5,'MarkerEdgeColor','r','MarkerFaceColor','m','MarkerSize',10)legend('a','Loca... 阅读全文
posted @ 2013-03-04 16:38 dreamsyeah 阅读(183) 评论(0) 推荐(0) 编辑
摘要: %计算多项式在【-3,4】区间的微分%多项式为y=x^4-3x^3+7x^2+2x-8x=linspace(-3,4);%产生100 个x 的离散点p=[1 -3 7 2 -8];f=polyval(p,x);subplot(2,1,1);plot(x,f);title('多项式方程');di... 阅读全文
posted @ 2013-03-04 16:38 dreamsyeah 阅读(107) 评论(0) 推荐(0) 编辑
摘要: %计算多项式在【-3,4】区间的微分%多项式为y=x^4-3x^3+7x^2+2x-8x=linspace(-3,4);%产生100 个x 的离散点p=[1 -3 7 2 -8];f=polyval(p,x);subplot(2,1,1);plot(x,f);title('多项式方程');di... 阅读全文
posted @ 2013-03-04 16:38 dreamsyeah 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 原文地址:matlab坐标轴设置作者:王屋农夫a=linspace(1,2,10)plot(a,'--pr','linewidth',1.5,'MarkerEdgeColor','r','MarkerFaceColor','m','MarkerSize',10)legend('a','Loca... 阅读全文
posted @ 2013-03-04 16:38 dreamsyeah 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 原文地址:matlab坐标轴设置作者:王屋农夫a=linspace(1,2,10)plot(a,'--pr','linewidth',1.5,'MarkerEdgeColor','r','MarkerFaceColor','m','MarkerSize',10)legend('a','Loca... 阅读全文
posted @ 2013-03-04 16:38 dreamsyeah 阅读(680) 评论(0) 推荐(0) 编辑
摘要: %分别用分段线性插值、此次方程式插值和样条插值确定插值函数并进行比较%月儿半弯 x=0:10; y=cos(x); xi=0:.25:10; y0=cos(xi); %精确值 y1=interp1(x,y,xi); %线性插值结果 y2=interp1(x,y,xi,'cubic'); %三次... 阅读全文
posted @ 2013-03-04 16:09 dreamsyeah 阅读(1086) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 25 下一页