Undefined function (missing) 'tile'
古いコメントを表示
I have been provided with the following code by someone who is out of touch for a good while.
The aim of the code is to unzip a .gz file into a far larger .txt file.
damages_file = gunzip(horzcat('.\Input\fires\',sprintf('%s', tile), '\size_', sprintf('%s', tile),'_version_ts',sprintf('%s', num2str(time)), '_', sprintf('%s', num2str(rp)),'v.txt.gz'));
When I attempt to run the code, however, the problem is that it says: Undefined function or variable 'tile'
My question is what is the problem, or what is a 'tile'? I am using the data file as is.
Does matlab require a separate toolbox or the like to be able to understand tiles.
回答 (1 件)
Mischa Kim
2014 年 2 月 17 日
0 投票
Bobby, in this case tile is a variable that needs to be initialized before it can be used. The input parameter for the gunzip() command is the text string of the file name you are trying to access. So tile is part of that filename/folder you need to specify.
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!