필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Alessandro Perna
Alessandro Perna 2020년 10월 1일
댓글: madhan ravi 2020년 10월 1일
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 ?

채택된 답변

Walter Roberson
Walter Roberson 2020년 10월 1일
%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
madhan ravi
madhan ravi 2020년 10월 1일
Sir Walter, I think each cellfun is missing a "(" at the beginning, but not entirely sure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by