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.
標(biāo)簽: dimensions arbitrary function reverse
上傳時(shí)間: 2016-04-16
上傳用戶:waitingfy
HZK16文件是按照GB 2312-80標(biāo)準(zhǔn),也就是通常所說的國(guó)標(biāo)碼或區(qū)位碼的標(biāo)準(zhǔn)排列的。國(guó)標(biāo)碼分為 94 個(gè)區(qū)(Section),每個(gè)區(qū) 94 個(gè)位(pOSition),所以也稱為區(qū)位碼。其中01~09 區(qū)為符號(hào)、數(shù)字區(qū),16~87 區(qū)為漢字區(qū)。而 10~15 區(qū)、88~94 區(qū)是空白區(qū)域。 如何取得漢字的區(qū)位碼呢?在計(jì)算機(jī)處理漢字和ASCII字符時(shí),使每個(gè)ASCII字符占用1個(gè)字節(jié),而一個(gè)漢字占用兩個(gè)字節(jié),其值稱為漢字的內(nèi)碼。其中第一個(gè)字節(jié)的值為區(qū)號(hào)加上32(20H),第二個(gè)字節(jié)的值為位號(hào)加上32(20H)。為了與ASCII字符區(qū)別開,表示漢字的兩個(gè)字節(jié)的最高位都是1,也就是兩個(gè)字節(jié)的值都又加上了128(80H)。這樣,通過漢字的內(nèi)碼,就可以計(jì)算出漢字的區(qū)位碼。
上傳時(shí)間: 2014-01-21
上傳用戶:黃華強(qiáng)
這篇英文論文主要介紹了基于TI公司TMS320C24x的直流無刷電機(jī)控制。A complete solution proposal is presented below: control structures, power hardware topology, shaft pOSition sensors, control hardware and remarks on energy conversion efficiency can be found in this document.
標(biāo)簽: presented complete solution proposal
上傳時(shí)間: 2013-12-24
上傳用戶:極客
The PMSM FOC is made of several C modules, compatible with the free-of-charge IAR EWARM KickStart edition toolchain version 4.42. It is used to quickly evaluate both the MCU and the available tools. In addition, when used together with the STM32F103xx motor control starter kit (STM3210B-MCKIT) and PM motor, a motor can be made to run in a very short time. It also eliminates the need for time-consuming development of FOC and speed regulation algorithms by providing ready-to-use functions that let the user concentrate on the application layer. Moreover, it is possible to get rid of any speed sensor thanks to the sensorless algorithm for rotor pOSition reconstruction.
標(biāo)簽: free-of-charge compatible KickStart modules
上傳時(shí)間: 2014-01-09
上傳用戶:498732662
This file contains a test program for showing how to use the joystick and the LCD display. The display will show the joystick pOSition. Joystick.c
標(biāo)簽: the contains joystick display
上傳時(shí)間: 2016-07-01
上傳用戶:fxf126@126.com
非常好的優(yōu)化算法的書,詳細(xì)介紹了蟻群算法和粒子群算法以及相關(guān)的matlab工具箱,講了理論和應(yīng)用給出了工具箱的下載地址。 Swarm intelligence is an innovative computational way to solve hard problems. In particular, particle swarm optimization, also commonly known as PSO, mimics the behavior of a swarm of insects or a school of fish. If one of the particle discovers a good path to food the rest of the swarm will be able to follow instantly even if they are far away in the swarm. Swarm behavior is modeled by particles in multidimensional space that have two characteristics: a pOSition and a velocity. These particles wander around the hyperspace and remember the best pOSition that they have discovered. They communicate good pOSitions to each other and adjust their own pOSition and velocity based on these good pOSitions.
標(biāo)簽: 優(yōu)化算法
上傳時(shí)間: 2014-01-26
上傳用戶:zgu489
獨(dú)立flash播放器!This the developer’s wiki for Gnash and related projects. Content on these pages may not represent the official pOSition of the Gnash team. You must register and be given access by the administrator to be able to write to the wiki registration is free, it’s friendly, and it stops spammers.
標(biāo)簽: developer projects Content related
上傳時(shí)間: 2016-08-21
上傳用戶:hebmuljb
This paper provides a rigorous comprehensive approach to the design of the principal software algorithmsutilized inmodern-day strapdown inertial navigationsystems: integration of angular rate into attitude, acceleration transformation/integration into velocity, and integration of velocity into pOSition.
標(biāo)簽: comprehensive principal the approach
上傳時(shí)間: 2016-10-18
上傳用戶:蠢蠢66
This diskette (version 1.0) contains demonstration programs and source codes in MATLAB (v.5.2) for algorithms listed in the textbook Global pOSitioning Systems, Inertial Navigation, and Integration, by M. S. Grewal, Lawrence Weill, and A. P. Andrews, published by John Wiley and Sons, 2000. Contents: MATLAB (Version 5.2) Demonstrations & Scripts Chapter4 ephemeris.m calculates the GPS satellite pOSition in ECEF coordinates from its ephemeris parameters. Chapter5 Klobuchar_fix.m calculates the ionospheric delay. Chapter6 (shows the quaternion utilities)
標(biāo)簽: demonstration diskette contains programs
上傳時(shí)間: 2016-10-20
上傳用戶:壞天使kk
calculate satellite pOSitions, to correct pseudoranges and finally to calculate the receivers pOSition。
標(biāo)簽: calculate pseudoranges satellite pOSitions
上傳時(shí)間: 2013-11-29
上傳用戶:363186
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1