上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: % matlab script to derive the 2-point Gauss-Laguerre quadrature rule% and use it on an example% inelegantly set up equations from meth... 阅读全文
posted @ 2015-04-01 01:07 vigorpush 阅读(315) 评论(0) 推荐(0) 编辑
摘要: e=exp(1); 阅读全文
posted @ 2015-04-01 00:58 vigorpush 阅读(110) 评论(0) 推荐(0) 编辑
摘要: syms x yz=exp(2*x+y)+cos(3*x*y)-exp(1)-1;zz=subs(z,x,1)solve(zz) 阅读全文
posted @ 2015-03-31 15:25 vigorpush 阅读(388) 评论(0) 推荐(0) 编辑
摘要: syms x y %就是定了符号变量x y以后x y就可以直接使用了,有他们运算出来的结果也是符号变量当然上面的也可以x=sym('x'),y=sym('y')sys('a+b')%就是将a+b转化为符号表达式两者有不同的使用场合比如符号变量涉及的个数比较少,但是使用... 阅读全文
posted @ 2015-03-31 15:17 vigorpush 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: f=@(x)(sin(x)+2*x);f(pi/2)f=sym('sin(x)+2*x');subs(f,'x',pi/2)%将 g 表达式中的符号变量 s 用 数值 f 替代f=inline('sin(x)+2*x');f(pi/2) 阅读全文
posted @ 2015-03-31 14:39 vigorpush 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 选项-基本-多重处理方式-新开一个播放进程播放 阅读全文
posted @ 2015-03-31 13:42 vigorpush 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: 1x3−2x−5dx, (from 0 to 1)write a function myfun that computes theintegrand:function y = myfun(x) y = 1./(x.^3-2*x-5);Then pass @myfun,... 阅读全文
posted @ 2015-03-31 10:16 vigorpush 阅读(235) 评论(0) 推荐(0) 编辑
摘要: % script to perform adaptive quadratureclear all, close allglobal pts% function to be integrated defined in routine ff = 'integrand';a... 阅读全文
posted @ 2015-03-31 10:08 vigorpush 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 变量名=@(输入参数列表)运算表达式例如, 前面那个计算变量平方的函数可以简单地写为这个匿名函数:mysqr1=@(x)x.*x之后, 执行mysqr1(变量名), 即可计算该变量的平方, 注意, mysqr1属性是函数句柄变量, 而不是这个表达式; 还有要注意这个表... 阅读全文
posted @ 2015-03-31 09:31 vigorpush 阅读(128) 评论(1) 推荐(0) 编辑
摘要: Question:I have a matrix, for exampleA = [ 1 2 3; 4 5 6; 7 8 9] ;and a vector of size 1x3 which specifies which element in each row is... 阅读全文
posted @ 2015-03-31 03:54 vigorpush 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页