Need help with understand a function code
1 次查看(过去 30 天)
显示 更早的评论
JPGIMAGE([p '\' fn(z).name],trh);
The JPGIMAGE is my function while trh is the treshold.
0 个评论
采纳的回答
Jan
2011-10-13
Then p is a string containing the path of the file, while fn is a struct array, whose element at index z carries the name of the file in the field 'name'.
You can inspect this in the command window: Set a breakpoint in this line and run th function until Matlab stops there. Then:
disp(p)
disp(fn)
disp(fn(z))
disp([p '\' fn(z).name])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Licensing on Cloud Platforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!