I am unable to understand the code
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Reuben Addison
am 11 Jan. 2019
Kommentiert: Reuben Addison
am 11 Jan. 2019
I am new to Matlab and I have taken an introductory course in it, I am currently reading someone's code to recreate mine, can someone kindly help explain line 7 of the code below.
- direc = dir(['C:\Documents and Settings\All Users\Documents\NeuroScript\PAN\107\Digitizer_trials\*.HWR']);
- filenames = {direc.name};
- filename = filenames{trialnumber};
- [pathstr, name, ext] = fileparts(filename);
- names = strrep(name,'10704101F','');
- names = str2num(names);
- data = dlmread(['C:\Documents and Settings\All Users\Documents\NeuroScript\PAN\107\Digitizer_trials\' cell2mat(filenames(trialnumber))],'',1,0);
2 Kommentare
Adam
am 11 Jan. 2019
The documentation in Matlab is excellent. In addition to Greg's answer just try:
doc dir
doc fileparts
doc strrep
doc str2num
and then see what you still don't understand.
Akzeptierte Antwort
Weitere Antworten (1)
Greg Heath
am 11 Jan. 2019
See
help dlmread
doc dlmread
Thank you for formally accepting my answer
Greg
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!