星期四, 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個字,突然文思泉湧,滔滔不絕!哈哈!

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

星期三, 2月 11, 2009

大破財



想到才剛過年,就花了一大筆錢,而且完全不是花在玩樂或是物質必需品上,唉唉唉~真是太慘了!


##CONTINUE##

  首先是汽車電瓶,車子從上次開已經過了一個月,想說過年來發動一下好了,沒想到一轉鑰匙,一點反應都沒有,真是太慘了,不過沒想到就在停車的附近看到維修更換電池的廣告電話,於是當場就撥電話請師父來換了一個電池,2500元!

  再來是我的筆記型電腦的螢幕,這台已經相伴我三年多的NB,已經忘了從什麼時候開始,開機的時候螢幕就會出現一條條雜線,不過通常過一陣子就消失,但是這幾天情況越來越嚴重,拿去宏碁檢查,說整個螢幕壞了,要12900大洋,哇靠!這個也太貴了吧,我的筆電都不值這個錢了,索性就在拍賣找了一找,結果今天早上就跑去了換了新的螢幕,3800元,靠!原廠也吃太多了吧!也許是要我乾脆換新的,但是我還不想這麼早換電腦!

  最後就是我的手機,因為在過年前,不知道在幹麼的時候,居然壓到,結果整個液晶螢幕破裂,原本一直想說這樣就可以不用PHS,因為收訊實在ooxx,但是如果要換的話,因為我的約尚未到期,換新手機又要花錢,雖然一直很想換新手機,尤其是山寨機,但是後來想想,雖然要換螢幕,PHS報價1800元,真是可以換新手機了,但是這樣不到還要繳PHS外,如果有新門號,也是要繳額外的錢,所以今天也順便在拍賣上面尋找,結果1100又搞定了手機液晶螢幕!

  就這樣,新的一年還沒開始多久,就花了7400在修東西上面!!唉!!

星期一, 12月 29, 2008

鬥志


從GRE考完後(馬的!考得有夠爛!),毅然決然開始準備托福,但是我的speaking跟listening實在是有夠爛,尤其是口說,真是爛到一種極致!




##CONTINUE##
  為了不讓自己怠惰,所以報了補習班補托福,想不到每次上課,都是被慘電的開始,實在想不透為什麼都沒辦法提升起來;再來是口說,根本就是limited中的limited,靠!真是難以想像!

  不過今天真正被慘電,電到慘死!話都講不出來。我的個性其實是那種不會隨意服輸,看來要真正超級努力了!