Borrar filtros
Borrar filtros

My code says error on func-grad

2 visualizaciones (últimos 30 días)
Bijaya
Bijaya el 6 de Dic. de 2023
Comentada: Dyuman Joshi el 6 de Dic. de 2023
here is my code
clear
format compact;
load 'levelset (1).mat'
% get the divergence field
[dFdx, dFdy, dFdz] = Func_gradient3D(X, Y, Z, F);
dFdx0=dFdx; dFdy0=dFdy; dFdz0=dFdz;
magDF = sqrt(dFdx.^2 + dFdy.^2 + dFdz.^2);
dFdx=dFdx./magDF;
dFdy=dFdy./magDF;
dFdz=dFdz./magDF;
kappa = func_divergence(X, Y, Z, dFdx, dFdy, dFdz);
kappa = func_divergence(X, Y, Z, dFdx, dFdy, dFdz);
[H, delta, mask] = func_HeavisideDelta(X, Y, Z, F, 2);
U = sqrt(Ux.^2 + Uy.^2 + Uz.^2);
[dUxdx, dUxdy, dUxdz] = func_gradient3D(X, Y, Z, Ux);
[dUydx, dUydy, dUydz] = func_gradient3D(X, Y, Z, Uy);
[dUzdx, dUzdy, dUzdz] = func_gradient3D(X, Y, Z, Uz);
  2 comentarios
Torsten
Torsten el 6 de Dic. de 2023
Please supply executable code that reproduces the error.
Dyuman Joshi
Dyuman Joshi el 6 de Dic. de 2023
Without the data, we can not run your code to reproduce the error and subsequently provide any suggestion/solution.
Also, we don't know what is the error you got, so, please copy and paste the whole error message i.e. all of the red text.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by