array forming for solution

1 回表示 (過去 30 日間)
ali hassan
ali hassan 2020 年 11 月 16 日
回答済み: Ameer Hamza 2020 年 11 月 16 日
HELLO everyone.plzz help out guys
hope everyone is doing good. need some assisstance guys.
QUESTION:
actually i have formed the array for x,y and z. we need values of lat and long to find array of x and y. what should be the code such that array of x and y is formed
CODE:
[x,y]=grn2eqa(lat, lon);
lat=34.0151 ;lon=71.5249; %%lat long for first value of x any y
lat=45.0151 ;lon=43.5249; %%lat long for second value of x any y
lat=24.0151 ;lon=35.5249; %%lat long for third value of x any y
lat=14.0151 ;lon=35.5249; %%lat long for fourth value of x any y
x=[x(1) x(2) x(3) x(3) x(4)].*100;
y=[y(1) y(2) y(3) y(3) y(4)].*100;
z=[0 0 0 0 ].*188; %%z=[z_1 z_2 z_3 z_p]
BEST REGARDS

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 16 日
Mapping toolbox already has a function for this: https://www.mathworks.com/help/map/ref/grn2eqa.html.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by