03 2015 档案

摘要: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 阅读(397) 评论(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 阅读(1592) 评论(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 阅读(338) 评论(0) 推荐(0)
摘要:选项-基本-多重处理方式-新开一个播放进程播放 阅读全文
posted @ 2015-03-31 13:42 vigorpush 阅读(1467) 评论(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 阅读(249) 评论(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 阅读(253) 评论(0) 推荐(0)
摘要:变量名=@(输入参数列表)运算表达式例如, 前面那个计算变量平方的函数可以简单地写为这个匿名函数:mysqr1=@(x)x.*x之后, 执行mysqr1(变量名), 即可计算该变量的平方, 注意, mysqr1属性是函数句柄变量, 而不是这个表达式; 还有要注意这个表... 阅读全文
posted @ 2015-03-31 09:31 vigorpush 阅读(145) 评论(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 阅读(276) 评论(0) 推荐(0)
摘要:Question:Editor's clarification: When this was originally posted, there were two issues:Test performance drops by a factor of three if... 阅读全文
posted @ 2015-03-31 02:45 vigorpush 阅读(174) 评论(0) 推荐(0)
摘要:Question:I was testing some code on Coliru, and I got a strange output. I went down the code and could reproduce it with this simplepi... 阅读全文
posted @ 2015-03-31 02:40 vigorpush 阅读(72) 评论(0) 推荐(0)
摘要:Question:So lets say I have a struct like this:struct example_structure {int thing_one;int thing_two;};I also have an empty array whic... 阅读全文
posted @ 2015-03-31 02:35 vigorpush 阅读(131) 评论(0) 推荐(0)
摘要:Minitab的操作路径为:主菜单Stat > Quality Tools > Cause-and-Effect先分别选择列“Man、Machine、Material、Method、Measure、Environment”为Branch 1-6的“Cause”再分别在... 阅读全文
posted @ 2015-03-30 11:39 vigorpush 阅读(901) 评论(0) 推荐(0)
摘要:在使用minitab的时候,我们会以中文版熟悉界面,但是我们在实际操作的时候就要使用英文版的功能。那么如何改变其语言环境呢。很简单:工具->选项->语言 阅读全文
posted @ 2015-03-30 10:36 vigorpush 阅读(547) 评论(0) 推荐(0)
摘要:minitab是专业数据分析软件,可以直接通过导入数据源出结果,出图表,EXCEL的长处就是单元格可编辑,可视化强,也能做较多的分析,导入一些加载宏后功能更强大,但就分析能力而言,还是比minitab要弱 做项目的专业人士当然首选minitab,一般的办公人员有EXC... 阅读全文
posted @ 2015-03-30 05:44 vigorpush 阅读(640) 评论(0) 推荐(0)
摘要:打开Minitab之后点击Stat>Basic Statistics> Normality Test 分析之后若 P value(P值)>0.05,说明此组数据服从正态分布 阅读全文
posted @ 2015-03-30 05:37 vigorpush 阅读(3894) 评论(0) 推荐(0)
摘要:我看到这个名词是我在查minitab的相关用法的时候看到的。这个理论是摩托罗拉的某人提出的,用于衡量制造业的制造水平:一下为MBA智库的相关信息: 6個西格瑪=3.4失誤/百萬機會―意味著卓越的管理,強大的競爭力和忠誠的客戶 5個西格瑪=230失誤/百萬機會-優秀... 阅读全文
posted @ 2015-03-30 05:29 vigorpush 阅读(264) 评论(0) 推荐(0)
摘要:有时候,我们要向minitab的worksheet输入一串串的数字,很是麻烦。相如一串数字我们在一个pdf文件存着那么效率最低的输入方法就是一个一个的输入,“Enter”进入下一行。比较有效率的方法是,直接载入worksheet的文件,或是以text的文件形式载入。这... 阅读全文
posted @ 2015-03-30 05:14 vigorpush 阅读(238) 评论(0) 推荐(0)
摘要:MATLAB中eig的作用eig Find eigenvalues and eigenvectors 返回矩阵的特征值和特征向量; [V,D] = eig(A) D是特征值 V特征向量 例如a=[1 2 3;4 5 6;7 8 9];[V,D]=eig(a) 结果: ... 阅读全文
posted @ 2015-03-29 16:18 vigorpush 阅读(1379) 评论(0) 推荐(0)
摘要:int **a = new int[5][6],这个根本编译不过去吧。如果你想new一个二维数组出来,应该这样:int** a= new int*[5];for (int i = 0; i < 5; ++i){ a[i] = new int[6];}delete... 阅读全文
posted @ 2015-03-29 12:51 vigorpush 阅读(714) 评论(0) 推荐(0)
摘要:X = diag(v,k)以向量v的元素作为矩阵X的第k条对角线元素,当k=0时,v为X的主对角线;当k>0时,v为上方第k条对角线几个例子:当k> v=[1 2 3];>> x=diag(v,-1)x =0 0 0 01 0 0 00 2 0 00 0 3 0v=[... 阅读全文
posted @ 2015-03-29 12:31 vigorpush 阅读(938) 评论(0) 推荐(0)
摘要:下标用 _(下划线) 希腊字母等特殊字符用 \加拼音 如 α \alpha β \beta γ \gamma θ \theta Θ \Theta Г \Gamma δ \delta Δ \Delta ξ \xi Ξ \Xi η \elta ε \epsilong ζ ... 阅读全文
posted @ 2015-03-29 12:15 vigorpush 阅读(1055) 评论(0) 推荐(0)
摘要:A=[1 2 3;4 5 6;7 8 9],每行之间用分号隔开也可以用循环控制输入n=input('请输入矩阵阶数:')for i=1:n for j=1:n a(i,j)=input('请输入矩阵元素:'); endenda ... 阅读全文
posted @ 2015-03-29 12:05 vigorpush 阅读(1998) 评论(0) 推荐(0)
摘要:有时在存放m文件的文件夹中会出现*.asv asv 就是auto save的意思,*.asv文件的内容和相应的*.m文件内容一样,用记事本和matlab都能打开它。它可以作为*.m文件的“备份”。 可以在preference中通过设置取消自动备份功能:file-... 阅读全文
posted @ 2015-03-29 08:41 vigorpush 阅读(3306) 评论(0) 推荐(0)
摘要:加上点“.”后表示两个矩阵或向量对应位置进行运算,这时候要求进行操作的两个变量必须维数相同(与矩阵乘法对矩阵维数要求不同) 阅读全文
posted @ 2015-03-29 08:37 vigorpush 阅读(644) 评论(0) 推荐(0)
摘要:二次根号:sqrt(a)或a^0.5三次根号:x^(1/3)或者x.^(1/3)根据x的数据结构类型矩阵、数组需要.^ 阅读全文
posted @ 2015-03-29 08:17 vigorpush 阅读(1458) 评论(0) 推荐(0)
摘要:1 Continuous Dependent Variable with normal distribution1 (2 Level) Categorical Independent Variable Task Completion timeSubjectInter... 阅读全文
posted @ 2015-03-29 03:59 vigorpush 阅读(594) 评论(0) 推荐(0)
摘要:气血在中医理论中,气血是指体内气和血的统称,相互作用且相互依存,以自身营养脏器组织,以维持生命、生理的正常活动。对于血——《灵枢·痈疽》有云:“中焦出气如露,上注溪谷,而渗孙脉,津液和调,变化而赤为血”不仅如此,而且《四圣心源-精华滋生》中有云:“水谷入胃,脾阳磨化... 阅读全文
posted @ 2015-03-28 09:21 vigorpush 阅读(422) 评论(0) 推荐(0)
摘要:% matlab script to illustrate stiffness % using simple flame propagation modelclose allclear all% define the right-hand side of the OD... 阅读全文
posted @ 2015-03-28 07:44 vigorpush 阅读(197) 评论(0) 推荐(0)
摘要:% right-hand side of arenstorf problemfunction yDot = arenstorf(t,y)global mu muHat% unpack yu1 = y(1);u2 = y(2);u1Dot = y(3);u2Dot = ... 阅读全文
posted @ 2015-03-28 07:43 vigorpush 阅读(129) 评论(0) 推荐(0)
摘要:function lorenzgui%LORENZGUI Plot the orbit around the Lorenz chaotic attractor.% This function animates the integration of the th... 阅读全文
posted @ 2015-03-28 07:42 vigorpush 阅读(169) 评论(0) 推荐(0)
摘要:% forward Euler demo% take two steps in the solution of % dy/dt = y, y(0) = 1% exact solution is y(t) = exp(t)clear allclose all% the ... 阅读全文
posted @ 2015-03-28 07:40 vigorpush 阅读(363) 评论(0) 推荐(0)
摘要:% matlab script to test efficiency of% Euler's method, classical Runge-Kutta, and ode45% on Arenstorf orbit problemclose allclear all%... 阅读全文
posted @ 2015-03-28 07:40 vigorpush 阅读(327) 评论(0) 推荐(0)
摘要:% matlab script to demonstrate use of Gauss quadratureclear all close all% first derive the 2-point Gauss quadrature ruleeq1 = 'w1*1 +... 阅读全文
posted @ 2015-03-28 07:39 vigorpush 阅读(367) 评论(0) 推荐(0)
摘要:Matlab 在有些时候太过去强大,强大到几乎所有的数学问题都可以解决。在这里,Matlab就像数学版的Vim,对于一般的使用者还是不想编程,想要更加的直接直观的数学处理工具,这里向大家介绍minitab!这里我会把我平时所看的资料和大家分享,同样的,我基本上看的是国... 阅读全文
posted @ 2015-03-28 06:33 vigorpush 阅读(218) 评论(0) 推荐(0)
摘要:IntroductionIn this lesson, we'll continue our investigation of hypothesis testing. In this case, we'll focus our attention on a hypot... 阅读全文
posted @ 2015-03-28 02:28 vigorpush 阅读(155) 评论(0) 推荐(0)
摘要:Standard deviation, represented by the Greek Letter sigma σ, is a measure of dispersement in statistics. It shows you how spread out y... 阅读全文
posted @ 2015-03-27 14:41 vigorpush 阅读(182) 评论(0) 推荐(0)
摘要:In each case, we'll illustrate how to perform the hypothesis tests of this lesson using summarized data.Hypothesis Test for One Varian... 阅读全文
posted @ 2015-03-27 14:24 vigorpush 阅读(144) 评论(0) 推荐(0)
摘要:Sample MeansThe sample mean from a group of observations is an estimate of the population mean. Given a sample of sizen, consider n i... 阅读全文
posted @ 2015-03-27 13:19 vigorpush 阅读(292) 评论(0) 推荐(0)
摘要:Question:I'm less than a year into C++ development (focused on other languages prior to this) and I'm looking at a guy's code who's be... 阅读全文
posted @ 2015-03-27 02:12 vigorpush 阅读(109) 评论(0) 推荐(0)
摘要:When I create a function, I can put the code for it after main if I put the prototype above main. For example,int myFunction(int a){re... 阅读全文
posted @ 2015-03-27 02:10 vigorpush 阅读(118) 评论(0) 推荐(0)
摘要:Question:I know references are syntactic sugar, so code is easier to read and write.But what are the differences?Summary from answers ... 阅读全文
posted @ 2015-03-26 16:28 vigorpush 阅读(133) 评论(0) 推荐(0)
摘要:Question:What does copying an object mean? What are the copy constructor and the copy assignment operator? When do I need to declare t... 阅读全文
posted @ 2015-03-26 16:25 vigorpush 阅读(165) 评论(0) 推荐(0)
摘要:Question:This question was already asked in the context of C#/.Net.Now I'd like to learn the differences between a struct and a class ... 阅读全文
posted @ 2015-03-26 16:22 vigorpush 阅读(216) 评论(0) 推荐(0)
摘要:Question:In what scenarios is it better to use a struct vs a class in C++?Answer:The only difference between a class and a struct in C... 阅读全文
posted @ 2015-03-26 16:18 vigorpush 阅读(131) 评论(0) 推荐(0)
摘要:I open several files in Vim by, for example, runningvim a/*.phpwhich opens 23 files.I then make my edit and run the following twice:qw... 阅读全文
posted @ 2015-03-26 15:03 vigorpush 阅读(150) 评论(0) 推荐(0)
摘要:Question:Suppose a1, b1, c1, and d1 point to heap memory and my numerical code has the following core loop.const int n=100000for(int j... 阅读全文
posted @ 2015-03-26 08:09 vigorpush 阅读(161) 评论(0) 推荐(0)
摘要:Question:#include int main(){ std::cout << "25"+1; return 0;}I am getting "5" as output.when I use "5"+1,output is blank;"456"+1... 阅读全文
posted @ 2015-03-26 08:05 vigorpush 阅读(126) 评论(0) 推荐(0)
摘要:Question:But I completely have no idea what I wanted to make. I just would like to study android.Would someone recommend me a simple p... 阅读全文
posted @ 2015-03-26 02:23 vigorpush 阅读(136) 评论(0) 推荐(0)
摘要:Question:I have been getting my feet wet with android sdk, eclipse, and other various beginner steps to making applications; now I wan... 阅读全文
posted @ 2015-03-26 02:22 vigorpush 阅读(95) 评论(0) 推荐(0)
摘要:Question:I was testing some code on Coliru, and I got a strange output. I went down the code and could reproduce it with this simple p... 阅读全文
posted @ 2015-03-25 11:13 vigorpush 阅读(118) 评论(0) 推荐(0)
摘要:Question:>>> timeit.timeit("'x' in ('x',)")0.04869917374131205>>> timeit.timeit("'x' == 'x'")0.06144205736110564Also works for multipl... 阅读全文
posted @ 2015-03-25 11:11 vigorpush 阅读(158) 评论(0) 推荐(0)
摘要:Quesion:My question arises from one of my c++ exercises (from Programming Abstraction in C++, 2012 version, Exercise 12.2). Here it is... 阅读全文
posted @ 2015-03-25 11:03 vigorpush 阅读(169) 评论(0) 推荐(0)
摘要:Question:In the various cases that a buffer is provided to the standard library's many string functions, is it guaranteed that the buf... 阅读全文
posted @ 2015-03-24 15:56 vigorpush 阅读(151) 评论(0) 推荐(0)
摘要:Question:I have by pure chance discovered that the C# compiler turns this method:static bool IsNotNull(object obj){ return obj != n... 阅读全文
posted @ 2015-03-24 15:50 vigorpush 阅读(144) 评论(0) 推荐(0)
摘要:Question:I can't believe I am typing a question for a simple thing like this but here we are. I can't for the life of me figure out wh... 阅读全文
posted @ 2015-03-24 03:40 vigorpush 阅读(121) 评论(0) 推荐(0)
摘要:Question:I have a use case where I can get pointers of strings allocated either in memory or literals. Now the latter can't be freed s... 阅读全文
posted @ 2015-03-24 02:08 vigorpush 阅读(111) 评论(0) 推荐(0)
摘要:Question:So we are used to say to every R new user that "apply isn't vectorized, check out the Patrick BurnsR Inferno Circle 4" which ... 阅读全文
posted @ 2015-03-24 02:05 vigorpush 阅读(117) 评论(0) 推荐(0)
摘要:https://www.youtube.com/watch?v=UApFKiK4Hi8 阅读全文
posted @ 2015-03-24 02:02 vigorpush 阅读(133) 评论(0) 推荐(0)
摘要:不能,因为无参无返回值无类型 阅读全文
posted @ 2015-03-23 14:09 vigorpush 阅读(840) 评论(0) 推荐(0)
摘要:如果构造函数打开了一个文件,最后不需要使用时文件就要被关闭。析构函数允许类自动完成类似清理工作,不必调用其他成员函数。析构函数也是特殊的类成员函数。简单来说,析构函数与构造函数的作用正好相反,它用来完成对象被删除前的一些清理工作,也就是专门的扫尾工作。 ... 阅读全文
posted @ 2015-03-23 14:05 vigorpush 阅读(247) 评论(0) 推荐(0)
摘要:构造函数class A(){A(){Console.write("构造函数");}}当你在程序种出现 A a=new A();的时候 程序自动执行 构造函数A(){Console.write("构造函数");}而析构函数 的写法是~A() {} 意思是 回收系统不用的... 阅读全文
posted @ 2015-03-23 14:00 vigorpush 阅读(394) 评论(0) 推荐(0)
摘要:/*设计一个类,它具有一个float指针成员.构造函数具有一个整形参数count,它为指针成员分配count个存储数据的元素空间.析构函数释放指针指向的空间.另外设计2个函数成员完成如下功能: (1)向指针指向的空间中存储数据; (2)返回这些数的平均值.*/#inc... 阅读全文
posted @ 2015-03-23 13:50 vigorpush 阅读(384) 评论(0) 推荐(0)
摘要:C#构造函数是在创建给定类型的对象时执行的类方法。构造函数具有与类相同的名称,它通常初始化新对象的数据成员。不带参数的构造函数称为“默认构造函数”。 无论何时,只要使用 new 运算符实例化对象,并且不为 new 提供任何参数,就会调用默认构造函数。除非类是 stat... 阅读全文
posted @ 2015-03-23 13:35 vigorpush 阅读(709) 评论(0) 推荐(0)
摘要:class base {public: base(int initialvalue = 0): x(initialvalue) {} base(const base& rhs): x(rhs.x) {}private: int x;};class derived... 阅读全文
posted @ 2015-03-23 13:32 vigorpush 阅读(1276) 评论(0) 推荐(0)
摘要:都是程序员,想必都对stackoverflow有一定的了解,这个网站是世界上最为活跃的编程知识的论坛网站,上面活跃着数以万计的大神、提问各种有意义有价值的问题,还有这些问题的详细的回答。但是毕竟是国外的网站,需要一定得语言的基础,所以对于中国人来说,这是一种劣势,所以... 阅读全文
posted @ 2015-03-21 15:52 vigorpush 阅读(134) 评论(0) 推荐(0)
摘要:今天上午的时候,看到大神在用vim编程,画面直观,速度很快,操作只需要用命令符就可以实施。所以可以推断vim的命令符是复杂的,那么学习过程中记忆会很漫长,很痛苦,但是如果记住了这些命令符,并可以熟练的使用,那么便可以放弃鼠标的使用,从而提高了效率。一般人一直是用的比较... 阅读全文
posted @ 2015-03-21 15:30 vigorpush 阅读(105) 评论(0) 推荐(0)
摘要:北京时间,三月十六日。铁路官方网站推出了图片验证,即需要准确地选取的正确的图片,否则无法的登录。好事是给黄牛带来的困难,另外不同的照片其中的因素或许有不同的商机,相如经常出现的某口香糖、某快餐店,这可以给12306带来潜在的商机。当时几乎在同一天,网友提出破解的ide... 阅读全文
posted @ 2015-03-17 01:12 vigorpush 阅读(144) 评论(0) 推荐(0)
摘要:“神机”归来! 一台电脑——诸位的武器——可以是剑,也可以是刀。“兵器”的强劲与否极大地影响着它的主人的日常生活和工作;一个硬件超强,性能强劲的电脑就像屠龙刀,人人都为其倾其所有,希望可以拥有;却忽略了在办公桌上那台老旧的电脑,那台为你工作了好久的电脑。这其实不是“兵... 阅读全文
posted @ 2015-03-06 14:29 vigorpush 阅读(362) 评论(0) 推荐(0)
摘要:(缺图,如果有什么问题,我会直接的解答其中的方法)话说高中三年生活,可谓多姿多彩,小生我也遵循着“高一玩,高二混,高三学”定律做事,可是大家别笑,我可是没浪费一分一秒的,尤其是高一的电脑也算是玩出名堂了吧,最后我还被同学们推荐当微机管理员。Step1开学第一天,点名排... 阅读全文
posted @ 2015-03-06 14:00 vigorpush 阅读(272) 评论(0) 推荐(0)