Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are all the successive operations performed on a given field?

0
Posted

What are all the successive operations performed on a given field?

0

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.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123