1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if A = 1 2 3 then B = 3 2 1 4 5 6 6 5 4 7 8 9 9 8 7 Write a main program to call reverse(A) for the matrix A = magic(5). Print to the screen both A and reverse(A). 2) Write a program which accepts an input k from the keyboard, and which prints out the smallest fibonacci number that is at least as large as k. The program should also print out its position in the fibonacci sequence. Here is a sample of input and output: Enter k>0: 100 144 is the smallest fibonacci number greater than or equal to 100. It is the 12th fibonacci number.
标签: dimensions arbitrary function reverse
上传时间: 2016-04-16
上传用户:waitingfy
这是一个ARM2410A的I/O字符驱动程序,有很好的框架,很有参考价值。以驱动LED,及按键为例。培训班内部资料
上传时间: 2014-01-18
上传用户:zhengzg
i am server im imi mim im im
上传时间: 2014-01-01
上传用户:alan-ee
S3C2440A第九部分I/O口译文,目前在网上还未见此部分的译文,想必定受欢迎,
上传时间: 2016-04-21
上传用户:123啊
some simulation on digital FM,as well as some dsp implemention
标签: some implemention simulation digital
上传时间: 2016-04-21
上传用户:410805624
I this this is a good book about ajax.I hope it can help you.
上传时间: 2014-06-03
上传用户:牛布牛
北京大学ACM比赛题目 In 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even number greater than 4 can be written as the sum of two odd prime numbers. For example: 8 = 3 + 5. Both 3 and 5 are odd prime numbers. 20 = 3 + 17 = 7 + 13. 42 = 5 + 37 = 11 + 31 = 13 + 29 = 19 + 23. Today it is still unproven whether the conjecture is right. (Oh wait, I have the proof of course, but it is too long to write it on the margin of this page.) Anyway, your task is now to verify Goldbach s conjecture for all even numbers less than a million.
标签: mathematician Christian Goldbach Leonhard
上传时间: 2016-04-22
上传用户:wangchong
Microsoft .net IL 汇编语言程序设计指南. To tell the truth, I don t think I had much choice in this matter. Let me explain. With Microsoft .NET technology taking the world by storm, with more and more information professionals getting involved, large numbers of books covering various aspects of this technology have started to arrive—and none too soon. Alas, virtually all of these books are dedicated to .NET-based programming in high-level languages and rapid application development (RAD) environments. No doubt this is extremely important, and I am sure all these books will have to be reprinted to satisfy the demand. But what about the plumbing?
标签: Microsoft choice matter truth
上传时间: 2014-11-06
上传用户:二驱蚊器
matlab遗传算法工具箱函数及实例讲解2 【问题】在-5<=Xi<=5,i=1,2区间内,求解 f(x1,x2)=-20*exp(-0.2*sqrt(0.5*(x1.^2+x2.^2)))-exp(0.5*(cos(2*pi*x1)+cos(2*pi*x2)))+22.71282的最小值。
上传时间: 2013-12-31
上传用户:gtzj
This zip contains a simple paper of SPIHT generated streams run length encoded ... later i ll be posting the MATLAB source code also and also SPIHT with Arithmetic coding
标签: generated contains encoded streams
上传时间: 2013-12-01
上传用户:huangld