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
This is a paper of "a rbust timing and freqeuncy synchronization for ofdm systems"
标签: synchronization freqeuncy systems timing
上传时间: 2013-12-21
上传用户:zmy123
a j2me program for nokia n76,which is a tool with a power function.
标签: function program nokia power
上传时间: 2014-01-05
上传用户:qlpqlq
a kind converts a technique according to the simple speech A_D of ADM principle
标签: according technique principle converts
上传时间: 2014-01-07
上传用户:whenfly
This program prints a calendar for a year specified. The user enters a year for the calendar and the programs automatically prints the calendar in text format.
标签: calendar year for specified
上传时间: 2016-05-25
上传用户:hwl453472107
am a boy she is a girlthem petam a boy she is a girlthem petam a boy she is a girlthem pet
上传时间: 2016-05-27
上传用户:363186
This Tetris-Clone was assembled from one ATmega8, 240 red LEDs, a few BJTs, a few IC s and some push-buttons.
标签: Tetris-Clone assembled few ATmega
上传时间: 2016-05-29
上传用户:ZJX5201314
the geometry of a diffraction grating, a common illustration in textbooks of optics, spectroscopy, and analytical chemistry. Sliders on the figures allow real-time interactive control of the incidence angle, grating ruling density (lines/mm), wavelength, and diffraction order.
标签: illustration spectroscopy diffraction textbooks
上传时间: 2016-06-04
上传用户:极客
a bar chart,a good refernce for the control
标签: refernce control chart good
上传时间: 2013-12-22
上传用户:whenfly
%例15-1 NaN数据参与分析 a = magic(3) a(2,2) = NaN %用NaN表示遗失数据 sum(a) %对数据集进行求和
上传时间: 2016-07-12
上传用户:as275944189