一個matlab mex 文件,可以用來在matlab程序中捕捉用戶按下的特殊功能健:F1, ..., F12. 使用時,在你的應用程序的 KeyPressFcn的函數體里,是用wgfcnkey,根據其返回值,判斷是否有功能健被按下。
上傳時間: 2014-01-07
上傳用戶:wsf950131
數字運算,判斷一個數是否接近素數 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上傳時間: 2015-05-21
上傳用戶:daguda
源代碼\用動態規劃算法計算序列關系個數 用關系"<"和"="將3個數a,b,c依次序排列時,有13種不同的序列關系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要將n個數依序列,設計一個動態規劃算法,計算出有多少種不同的序列關系, 要求算法只占用O(n),只耗時O(n*n).
上傳時間: 2013-12-26
上傳用戶:siguazgb
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
標簽: government streamline important alphabet
上傳時間: 2015-06-09
上傳用戶:weixiao99
電力系統在臺穩定計算式電力系統不正常運行方式的一種計算。它的任務是已知電力系統某一正常運行狀態和受到某種擾動,計算電力系統所有發電機能否同步運行 1運行說明: 請輸入初始功率S0,形如a+bi 請輸入無限大系統母線電壓V0 請輸入系統等值電抗矩陣B 矩陣B有以下元素組成的行矩陣 1正常運行時的系統直軸等值電抗Xd 2故障運行時的系統直軸等值電抗X d 3故障切除后的系統直軸等值電抗 請輸入慣性時間常數Tj 請輸入時段數N 請輸入哪個時段發生故障Ni 請輸入每時段間隔的時間dt
上傳時間: 2015-06-13
上傳用戶:it男一枚
本指南主要通過使用工作的例子提供一個JMF的一些主要的特征的概述。閱讀完本指南后,你將會明白JMF體系結構中的主要播放功能。你同樣能正確的使用JMF,使用現存的例子和可為更多特殊功能擴展的源代碼。
上傳時間: 2014-01-08
上傳用戶:集美慧
Fx-3600pv計算器是日本CASIO公司的產品,它除了具備函數型計算器的全部功能之外,還具備如下特殊功能: 1、二進制和八進制字組顯示; 2、二進制、八進制、十進制和十六進制的轉換和加、減、乘、除運算。 3、進行f(x)函數的輸入與積分的計算; 4、進行標準差和回歸計算。 每一臺Fx-3600pv計算器都具備一本說明書,該計算器各部鍵的功能以及操作方法,只要認真按照說明書各章節學習,很快就能掌握和運用。現將我在生產實踐中應用的部分計算程序介紹給測繪界的同行以便共同探討。
上傳時間: 2015-09-09
上傳用戶:tuilp1a
Fx-4800P計算器是日本Casio公司的產品,它除了具備函數型計算器的全部功能之外,還具備如下特殊功能: 1、二進制和八進制字組顯示; 2、二進制、八進制、十進制和十六進制的轉換和加、減、乘、除運算。 3、進行f(x)函數的輸入與積分的計算; 4、進行標準差和回歸計算。 每一臺Fx-4800P計算器都具備一本說明書,該計算器各部鍵的功能以及操作方法,只要認真按照說明書各章節學習,很快就能掌握和運用,現將我在生產實踐中應用的部分計算程序介紹給測繪界的同行以便共同探討。
上傳時間: 2015-09-09
上傳用戶:Pzj
本課程介紹ASP.NET新的GridView控件的深入使用,GridView控件本身功能十分強大,在本次講座中,將介紹在開發中常見的用法,以及一些特殊功能的擴展,通過本課的學習,可以使用GridView更適合您開發的需求。
上傳時間: 2015-10-15
上傳用戶:1051290259
一:需求分析 1. 問題描述 魔王總是使用自己的一種非常精練而抽象的語言講話,沒人能聽懂,但他的語言是可逐步解釋成人能聽懂的語言,因為他的語言是由以下兩種形式的規則由人的語言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫一個魔王語言的解釋系統,把 他的話解釋成人能聽得懂的話. 2. 基本要求: 用下述兩條具體規則和上述規則形式(2)實現.設大寫字母表示魔王語言的詞匯 小寫字母表示人的語言的詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測試數據: B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫字母與漢字建立下表所示的對應關系,則魔王說的話是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時間: 2014-12-02
上傳用戶:jkhjkh1982