Borrar filtros
Borrar filtros

How can I do the sin of a cell 181*361?

1 visualización (últimos 30 días)
Alessandro Perna
Alessandro Perna el 1 de Oct. de 2020
Comentada: madhan ravi el 1 de Oct. de 2020
I have 2 cell(181,361) called LATI e LONGI whith all element are a matrix 43x1 or 44x1. i whould use this cell in :
%conversione da LLA a ECEF
NN = a_matrix ./ sqrt(1 - ecc^2 .* sin(LATI).^2);
% results:
SSx = (NN+R_E) .* cos(LATI) .* cos(LONGI);
SSy = (NN+R_E) .* cos(LATI) .* sin(LONGI);
SSz = ((1-e^2) .* NN + R_E) .* sin(LATI);
How i can do ?

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Oct. de 2020
%conversione da LLA a ECEF
NN = cellfun(@lati) a_matrix ./ sqrt(1 - ecc^2 .* sin(lati).^2), LATI, 'uniform', 0);
% results:
SSx = cellfun(@nn,lati,longi) (nn+R_E) .* cos(lati) .* cos(longe), NN, LATI, LONGE, 'uniform', 0);
SSy = cellfun(@nn,lati,longi) (nn+R_E) .* cos(lati) .* sin(longe), NN, LATI, LONGE, 'uniform', 0);
SSz = cellfun(@nn, lati) ((1-e^2) .* nn + R_E) .* sin(lati), NN, LATI, 'uniform', 0);
  1 comentario
madhan ravi
madhan ravi el 1 de Oct. de 2020
Sir Walter, I think each cellfun is missing a "(" at the beginning, but not entirely sure.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by