Need help with understand a function code

1 Ansicht (letzte 30 Tage)
Fish Out Of Water :D
Fish Out Of Water :D am 13 Okt. 2011
JPGIMAGE([p '\' fn(z).name],trh);
The JPGIMAGE is my function while trh is the treshold.

Akzeptierte Antwort

Jan
Jan am 13 Okt. 2011
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])

Weitere Antworten (0)

Kategorien

Mehr zu Licensing on Cloud Platforms finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by