Need help with understand a function code

조회 수: 1 (최근 30일)
Fish Out Of Water :D
Fish Out Of Water :D 2011년 10월 13일
JPGIMAGE([p '\' fn(z).name],trh);
The JPGIMAGE is my function while trh is the treshold.

채택된 답변

Jan
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 CenterFile Exchange에서 Licensing on Cloud Platforms에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by