thank you so much ^-^
On Wednesday, December 24, 2014 2:47:19 PM UTC+11, Jameson wrote: > > There is a package available for reading matlab .mat files ( > https://github.com/simonster/MAT.jl) > > For basic `dir()` functionality, Julia's `readdir()` may be sufficient for > you. For more complicated usages, Glob.jl pattern matching may come in > handy (https://github.com/vtjnash/Glob.jl) > > On Tue Dec 23 2014 at 10:41:36 PM DP <[email protected] <javascript:>> > wrote: > >> As per .mat file, one thing I can say is, >> Write a Matlab script to get a .csv data file from .mat. >> Now Interface .csv file with your julia code. >> >> >> On Wednesday, December 24, 2014 8:00:35 AM UTC+5:30, jspark wrote: >>> >>> >>> Hi, >>> >>> I am a *two days *old beginner for *Julia* and it seemed I can >>> translate *Matlab* code into Julia in a second (?) but the reality is >>> always different... >>> The goal for original *Matlab* code was to select eight time series >>> data files (matlab format) in a folder(directory) and run the data analysis >>> with "for loop" one by one. >>> Now it looks like *Juila* code but it is not yet working because 1) it >>> still use *Matlab *functions like dir() and 2) it need to run data >>> files in *.mat* format. >>> I have error from dirData = (line 5) and could you help me out from >>> there? >>> >>> #set file path >>> >>> loadPath="E:\USA\Data\Data111" ; >>> >>> #select only Matlab files >>> >>> cd(loadPath) >>> >>> dirData = dir("*.mat"); ## Selected mat files >>> fileNames = {dirData.name}; ## named the list of the files as >>> fileNames >>> >>> #run loop >>> >>> for s=1:8 >>> >>> FN=fileNames(s) # select one file >>> DATA=load(char(FN)) >>> >>> "run additional codes" >>> >>> end; >>> >>> >>
