フィルターのクリア

Display USA Map With Defaultm

3 ビュー (過去 30 日間)
Senrab
Senrab 2011 年 7 月 29 日
編集済み: Sushranth 2021 年 6 月 21 日
I have a Matlab program which I use to prepare points of geographic data. I do this by converting the points out of the Ellipsoid and onto the plane using the following.
mstruct=defaultm('lambert');
mstruct.origin=[45.684 -94.1505]; %TODO: What does this really do?
mstruct.mapparallels=[42.397 48.971];
mstruct=defaultm(mstruct);
mfwdtran(mstruct, ...
Since I have some questions about how well this process works I'd like to display the state of Minnesota's Lambert projection using the mstruct I've defined above.
I don't think I can do this with setm. Any thoughts?

回答 (1 件)

Sushranth
Sushranth 2021 年 6 月 21 日
編集済み: Sushranth 2021 年 6 月 21 日
mfwdtran is outdated and will be removed in future releases. You can use projfwd instead.
mstruct=defaultm('lambert');
mstruct.origin=[45.684 -94.1505];
mstruct.mapparallels=[42.397 48.971];
mstruct=defaultm(mstruct);
[x y] = projfwd(mstruct, lat, long);
figure
plot(x,y)
axis equal
You can check the below link for more details on defaultm:-

Community Treasure Hunt

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

Start Hunting!

Translated by