file - matlab importdata exception -


i have saved variable 2d-matrix on file named 'handwaving_78.table' , when use importdata filename exception
error using videoreader/read (line 145) not seek frame. frame
accurate seeking not supported file on current platform.
error in importdata (line 192) out = read(videoobj);
error in createnewdatasetfromreadfiles (line 28)
data = importdata(strcat(baseclassfileaddress,'/',allfiles(j).name));
changed name of file 'handwaving_78.txt' , worked fine. using matlab r2014a on ubuntu 14.0.4 , want know problem because not want change file extensions.

from documentation of importdata:

if importdata recognizes file extension, calls matlab helper function designed import associated file format (such load mat-files or xlsread spreadsheets). otherwise, importdata interprets file delimited ascii file.

it's mystery why .table files recognized videos, there little can change default behavior.

the solution propose use more text-specific function dlmread, readtable or textscan instead of importdata.


edit

another option use '-ascii' parameter save function (see this link more related options):

save('some_address.table','data', '-ascii'); 

then importdata should recognize file text file.

best,


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -