Hi,
I have calculate the Curl, Divergence from the velocity data file available in 4650 x 4 array. Here 1, 2, 3, and 4 columns reprsents x, y, u, v. I have tried with below script, but I am getting some error. Please help..
X = data (:,1);
Y = data (:,2);
UU = data (:,3);
VV = data (:,4);
[X,Y] = meshgrid(X,Y);
[UU, VV] = meshgrid(UU,VV);
f = curl(UU,VV);
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/576244-curl-divergence-calculation-from-velocity-data#comment_963421
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/576244-curl-divergence-calculation-from-velocity-data#comment_963421
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/576244-curl-divergence-calculation-from-velocity-data#comment_963709
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/576244-curl-divergence-calculation-from-velocity-data#comment_963709
Sign in to comment.