How to compute scalar fields other than the default ones proposed in vec2scal?
vec2scal allows to convert vector fields into most classical scalar fields of interest (vorticity, divergence etc.) For more exotic operations, you may use operf. You may also write your own .m file, starting from a basic scalar field. For instance, suppose you want to compute a scalar field given by 2*vx + vy^2: function res = strangefield(v) res = vec2scal(v,’norm’); res.w = 2*v.vx + v.vy.^2; res.namew = ‘strange field’; Then simply call your function with: showscal(strangefield(loadvec(‘B00001.