フィルターのクリア

Plot shape file on a 3D map

4 ビュー (過去 30 日間)
Pepe Grillo
Pepe Grillo 2022 年 5 月 18 日
Hi!
I made a map of bathymetrie in 3D, but I want to include in this 3D map shape files, line and others points, that are 2D.
%...
P = m_shaperead('muc');
for j=1:length(P.ncst),
m_line(P.ncst{j}(:,1),P.ncst{j}(:,2), 'LineWidth',3, 'marker','pentagram','markersize',5,'color','r');
end;
n = length(P) ;
x = zeros(n,1) ; y =zeros(n,1) ;
% or using m_line:
m_line(LonNB2, LatNB2,'LineWidth',2,'Color','m');
when I use this code, that works in 2D maps but in the 3D script then give this error:
Output argument "X" (and maybe others) not assigned during call to "m_ll2xy".
Error in m_line (line 49)
[X,Y]=m_ll2xy(long,lat,'clipping',clp);
Is a way to save 2D shapes in 3D or other solution?
Thanks!

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeodesy and Mapping についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by