フィルターのクリア

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 Center および File ExchangeMap Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by