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.

How to compute scalar fields other than the default ones proposed in vec2scal?

0
Posted

How to compute scalar fields other than the default ones proposed in vec2scal?

0

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.

What is your question?

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

Experts123