What are all the successive operations performed on a given field?
Among the variables stored in the structure v, one is called “history”. This variable is a cell array of strings, and each operation adds a new string to this cell array, which describes this operation. For instance, suppose you do v=loadvec(‘B00001.vc7′); v=shiftf(extractf(v,[10 10 100 100],’phys’),’center’); fv=bwfilterf(v, 2, 8); curl=vec2scal(fv, ‘rot’); If you type curl.history you obtain the following cell array of strings: ‘loadvec(‘B00001.vc7′)’ ‘extractf(ans, [10 10 100 100], ‘phys’)’ ‘shiftf(ans, ‘center’)’ ‘bwfilterf(ans, 2, 8, ‘low’)’ ‘vec2scal(ans, ‘rot’, ‘nonzero’)’ In this list, ans refers to the result of the previous operation. See Programming > Data Types > Cell arrays in the Matlab help to learn more about cell arrays.