Problem About 3D Plot Of Map
Show older comments
Hi everyone,
I am trying to plot 3D map whose x and y axis are located on 2D map specified by using worldmap and geoshow functions and z axis is assigned as depth. But, the code I am trying to develop doesn't give what I am expecting. Here is my code;
worldmap([37.400 39.200],[42.000 44.400]);
geoshow('landareas.shp', 'FaceColor', 'yellow');
Latitude=[38.8435 38.8420 38.7043 38.8430 38.8335];
Longitude=[43.5308 43.5710 43.4535 43.4585 43 5795];
Depth=[21.71 21.9 21 25.5 21.8];
plot3m(Latitude,Longitude,Depth, 'o', 'MarkerSize', 3,...
'MarkerFaceColor','r');
How can I solve this problem?
Answers (1)
José-Luis
on 28 May 2013
You are missing a '.':
Longitude=[43.5308 43.5710 43.4535 43.4585 43.5795];
1 Comment
Categories
Find more on Vector and Raster Map Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!