星期四, 3月 05, 2009

Matlab搬檔試作

完托福後,最近又回實驗室準備要完成當初應該做的事情,重新又開始寫matlab,不過這次搬檔案拿matlab來寫,真的是殺雞用牛刀,不過因為我又不熟python跟C的指令(汗顏!),所以只好搞matlab,結果指令也差不多忘光光,結果搞了差不多三個小時,加上寫blog就搞了四個小時(哈!我上班都在打混)!

##CONTINUE##



  這次最主要的是,要把我實驗資料重新排列,可以從圖上發現,當初我的資料是按照日期安排,然後我的實驗又是前中後三個時間點測試,所以不同日期會有相同人在不同時間的資料,今天我是想把他作成,以人名為資料夾名稱,把我要的資料按前中後分別抓到三個資料夾內。



  所以程式寫法就是,進入每一個資料夾(好在我當初分析的時候,檔名都很一致),抓出我要的檔案,然後去設一個新的位置,相同人如果重複,表示換成另外一個時間點(因為我是按照資料夾時間去抓的),判斷資料夾是否已經出現,新增時間點,放入資料!




clear all
%%%%%%%% Enter E:\Data_ply %%%%%%%%
dir_date = dir('E:\Data_ply');
newdir=['F:\rms_data\'];
mkdir(newdir);
for i = 3:length(dir_date)
path = ['E:\Data_ply\',dir_date(i).name,'\'];
dir_sub = dir(path);
for l = 3:length(dir_sub)
path_1 = [path,dir_sub(l).name,'\analysis\'];
newfilepath = [newdir,dir_sub(l).name];
if exist(newfilepath,'dir')==0
newfilepath_pre = [newfilepath,'\pre\']
mkdir(newfilepath_pre)
if exist([path_1,'f_1.txt'])==2
copyfile([path_1,'f_*.txt'],newfilepath_pre)
end
elseif exist(newfilepath,'dir')==7 && exist([newfilepath,'\pre'],'dir')==7 && exist([newfilepath,'\4wk'],'dir')==0
newfilepath_4wk = [newfilepath,'\4wk\']
mkdir(newfilepath_4wk)
if exist([path_1,'f_1.txt'])==2
copyfile([path_1,'f_*.txt'],newfilepath_4wk)
end
elseif exist(newfilepath,'dir')==7 && exist([newfilepath,'\pre'],'dir')==7 && exist([newfilepath,'\4wk'],'dir')==7
newfilepath_8wk = [newfilepath,'\8wk\']
mkdir(newfilepath_8wk)
if exist([path_1,'f_1.txt'])==2
copyfile([path_1,'f_*.txt'],newfilepath_8wk)
end
end
end
end


星期一, 3月 02, 2009

機經+維基=托福必讀80

文來源為英小姐看世界機經+維基=托福必讀80,非常感激他的辛苦整理!

##CONTINUE##文


1. Industrialization: http://en.wikipedia.org/wiki/Industrialized


2. Guild: http://en.wikipedia.org/wiki/Guild


3. Movable Type: http://en.wikipedia.org/wiki/Movable_type


4. Topography: http://en.wikipedia.org/wiki/Topography


5. Mammal: http://en.wikipedia.org/wiki/Mammal


6. Chinese Art: http://en.wikipedia.org/wiki/Chinese_Art


7. Types of Volcanic Eruptions: http://en.wikipedia.org/wiki/Volcanic_eruption


8. Salt: http://en.wikipedia.org/wiki/Salt


9. Parasitism: http://en.wikipedia.org/wiki/Parasitism


10. Documentary Films: http://en.wikipedia.org/wiki/Documentary_film


11. Psychology: http://en.wikipedia.org/wiki/Psychology


12. Underground mining: http://en.wikipedia.org/wiki/Underground_mining_(hard_rock)


13. Dime Novel: http://en.wikipedia.org/wiki/Dime_novel


14. Crystal: http://en.wikipedia.org/wiki/Crystal


15. Formation and Evolution of Solar System: http://en.wikipedia.org/wiki/Formation_and_evolution_of_the_Solar_System


16. Photosynthesis: http://en.wikipedia.org/wiki/Photosynthesis



17. Uniformitarianism: http://en.wikipedia.org/wiki/Uniformitarianism_(science)


18. Agriculture: http://en.wikipedia.org/wiki/Agriculture


19. Food Security: http://en.wikipedia.org/wiki/Food_security

20. River Nile: http://en.wikipedia.org/wiki/River_Nile


21. Ecological Crisis: http://en.wikipedia.org/wiki/Ecological_crisis


22. Thermoregulation: http://en.wikipedia.org/wiki/Thermoregulation


23. Jade: http://en.wikipedia.org/wiki/Jade


24. Neurology: http://en.wikipedia.org/wiki/Neurology


25. Aging: http://en.wikipedia.org/wiki/Aging


26. Public Transport: http://en.wikipedia.org/wiki/Public_transport


27. Planet: http://en.wikipedia.org/wiki/Planet


28. Periodic Table: http://en.wikipedia.org/wiki/Periodic_table


29. Dadaism: http://en.wikipedia.org/wiki/Dadaism


30. Speciation: http://en.wikipedia.org/wiki/Speciation


31. Tidal Power: http://en.wikipedia.org/wiki/Tidal_power


32. Centralized government: http://en.wikipedia.org/wiki/Centralized_government


33. Fossil and Types of Preservation: http://en.wikipedia.org/wiki/Fossil


34. Physiology of Dinosaurs: http://en.wikipedia.org/wiki/Physiology_of_dinosaurs


35. Roman Britain: http://en.wikipedia.org/wiki/Roman_Britain


36. Termite: http://en.wikipedia.org/wiki/Termite


37. Coral Reef: http://en.wikipedia.org/wiki/Coral_reef


38. Heterothermic: http://en.wikipedia.org/wiki/Heterothermic


39. Pesticide: http://en.wikipedia.org/wiki/Pesticide


40. Asexual Reproduction: http://en.wikipedia.org/wiki/Asexual_reproduction


41. History of Film: http://en.wikipedia.org/wiki/History_of_film


42. Deer: http://en.wikipedia.org/wiki/Deer


43. Cave Paintings: http://en.wikipedia.org/wiki/Cave_painting


44. Electric Power Transmission: http://en.wikipedia.org/wiki/Electric_power_transmission


45. Solubility: http://en.wikipedia.org/wiki/Solubility


46. Infrared Sensing in Snakes: http://en.wikipedia.org/wiki/Infrared_sensing_in_snakes


47. Irrigation: http://en.wikipedia.org/wiki/Irrigation


48. Mesopotamia: http://en.wikipedia.org/wiki/Mesopotamia


49. Natural Selection: http://en.wikipedia.org/wiki/Natural_selection


50. Telegraphy: http://en.wikipedia.org/wiki/Telegraphy


51. Bird vocalization: http://en.wikipedia.org/wiki/Bird_vocalization


52. Cretaceous–Tertiary Extinction Event: http://en.wikipedia.org/wiki/Cretaceous%E2%80%93Tertiary_extinction_event


53. Paddy Field: http://en.wikipedia.org/wiki/Paddy_field


54. Iceberg: http://en.wikipedia.org/wiki/Iceberg


55. Herbivory: http://en.wikipedia.org/wiki/Herbivory


56. The Modern City of Alexandria: http://en.wikipedia.org/wiki/Alexandria


57. Maya Civilization: http://en.wikipedia.org/wiki/Maya_civilization


58. Earth: http://en.wikipedia.org/wiki/Earth


59. Costume: http://en.wikipedia.org/wiki/Costume


60. Trout: http://en.wikipedia.org/wiki/Trout


61. Water Resources: http://en.wikipedia.org/wiki/Water_resources


62. Art of Ancient Egypt: http://en.wikipedia.org/wiki/Art_of_ancient_Egypt


63. Bird Migration: http://en.wikipedia.org/wiki/Bird_migration


64. Fuel: http://en.wikipedia.org/wiki/Feul


65. History of Dance: http://en.wikipedia.org/wiki/History_of_dance


66. Weather Forecasting: http://en.wikipedia.org/wiki/Weather_prediction


67. Inca Civilization: http://en.wikipedia.org/wiki/Inca_civilization


68. Icicle and Ice Spike: http://en.wikipedia.org/wiki/Icicle


69. Industrial and Organizational Psychology: http://en.wikipedia.org/wiki/Industrial_and_organizational_psychology


70. Chromatophore: http://en.wikipedia.org/wiki/Chromatophore


71. Spartan Society: http://en.wikipedia.org/wiki/Spartiate


72. Attributional Bias: http://en.wikipedia.org/wiki/Attributional_bias


73. Primary and Secondary Relationship: http://en.wikipedia.org/wiki/Primary_and_secondary_(relationship)


74. Chronobiology: http://en.wikipedia.org/wiki/Chronobiology


75. Desertification: http://en.wikipedia.org/wiki/Desertification


76. Quilt: http://en.wikipedia.org/wiki/Quilt


77. Native Americans in the US: http://en.wikipedia.org/wiki/Native_Americans_in_the_United_States


78. Minoan Civilization: http://en.wikipedia.org/wiki/Minoan_civilization


79. Green Revolution: http://en.wikipedia.org/wiki/Green_revolution


80. Famine Food: http://en.wikipedia.org/wiki/Famine_food

228和托福抗戰


著勇氣,伴隨著上禮拜模考聽力只錯一題的假象(果真是假象!),準備去赴死,雖然閱讀練了又練,但是仍然感覺準備不足,口說講了又講,還是2266!作文更是,內容空泛略嫌浮誇!!

##CONTINUE##



  有了上次GRE睡不著的經驗之後,就決定這次一定要睡著,沒想到,還是睡不著(有人依舊可以呼呼大睡),不到七點就爬起來,整理了一下東西,路上買個早餐,白蘭式雞精,就往考場衝,路上車不多,運氣好順利找到停車位,就這樣到了東區驅勢考場!不過考場還沒開,就在底下抱佛腳吃早餐!

  正式考試前,喝了雞精(真的雞精啦!),瞇了一下,突然精神來了,尤其換我拍照進去的時候,異常興奮阿,哈哈哈!不過這個興奮就在看到了閱讀測驗內容後,就慢慢削弱下來,spontaneous generation,我還是看了好久,才想起大一生物課的時候老師講了個故事!不過這篇可讓我花了25分鐘,因為二三篇合計40分鐘可以寫,所以第三篇我就寫得超趕,幾乎是關鍵字閱讀,少下最後一分多鐘的時候,點下倒數最後第二題,想說還有一分鐘可以寫最後一題,沒想到就在我點了之後,慘事發生了!

  心裡的念頭第一個是,shit!!不對,雖然是考英文,但是髒話還是本土版的"幹"什麼才是!!冷靜下來,仔細一看,看到第一句就不能冷靜了,......error.....,然後就馬上看最後一句"This program will be terminated in xx secs"我還沒注意有幾秒就看到下面熟悉的bar開始慢慢填滿,shit!當下我冷靜的想起考前試務人員說有問題請舉手,若沒看到請站起來,不要大呼小叫!於是一開始我就舉手,還在空中轉圈圈揮阿揮,shit!居然沒人鳥我,眼看bar就快要被填滿了!我馬上從椅子上面彈起來,上下左右前後,居然不見半個試務人員,我就在那邊罰站了我人生最長的10秒鐘,這時候才有試務人員衝進來,看了之後,就叫另外一個人衝進來,然後跟我說,現在幫我重開,會從剛剛寫到的地方開始,shit!此時我心情當然大受影響,連去檢查前面答案有沒有存在都沒時間,只好急急忙忙填了最後一題!就在這時候,我看到簡單熊爽呵呵的走進來,一臉就是舒暢的表情,我才知道,簡單熊居然幫我引開試務人員,真是太"巧妙"了!

  就這樣,帶著影響的心情繼續,聽力突然感覺有層紗隔在耳朵跟耳機之間,雖然講得慢,但是我都聽不懂!記筆記也亂了方寸!聽力就這樣,應該也掛了!中場休息,前面的人在廁所裡不知道是不是在大便,等了超級久,上完廁所,吞了根勢力架,連拿水出來漱口都還來不及,就被叫進去了,在講Describe the city you live in的時候,嘴巴還有花生粒!真是!不過作文倒是,寫了練習以來的最多字,494個字,突然文思泉湧,滔滔不絕!哈哈!

  唉唉!就這樣,結束了對托福的初體驗!!