From: Andrew on 3 May 2007 14:49 JokerJek wrote: > > > . JokerJek, You need to provide us with more information regarding your problem, rather than simply re-posting your original question. Some simple things you could provide: What have you done (if anything) to solve this problem so far? What exactly is your problem? Is it reading the shapefile into ML or is it creating the surface? Do you have the mapping toolbox? -Andrew
From: JokerJek on 4 May 2007 07:28 Andrew wrote: > You need to provide us with more information regarding your > problem, > rather than simply re-posting your original question. Some simple > things you could provide: > > What have you done (if anything) to solve this problem so far? > > What exactly is your problem? Is it reading the shapefile into ML > or > is it creating the surface? > > Do you have the mapping toolbox? > > -Andrew Problem is in creating the surface from shape file made by ArcMAP 9. I have full version Matlab 2007a. As I understand the mapping toolbox only can open *.shp. It can’t make the surface. I try 'vec2mtx', but it’s not working correctly.
From: Andrew on 4 May 2007 13:09 > Problem is in creating the surface from shape file made by ArcMAP > 9. > > I have full version Matlab 2007a. > As I understand the mapping toolbox only can open *.shp. It > can�t make the surface. > I try 'vec2mtx', but it�s not working correctly. JokerJek, I am afraid you are still not posting enough info about your problem. Maybe paste in some code that you have run like; s=shaperead('skag_5_ctr.shp'); fieldnames(s) ans = 'Geometry' 'BoundingBox' 'X' 'Y' 'ID' 'CONTOUR' Then we would know what your data structure looks like. Although my data set isn't 3D here, I would try something like: x=[s(:).X]; y=[s(:).Y]; z=[s(:).Z]; % if I had a third dimension Then I would use a combination of meshgrid and griddata (or gridfit, available on the FEX) to create the surface. For details on this procedure, search the CSSM. There are MANY posts asking the same question. -ANdrew
From: JokerJek on 6 May 2007 04:46 Andrew wrote: > I am afraid you are still not posting enough info about your > problem. > Maybe paste in some code that you have run like; > > s=shaperead('skag_5_ctr.shp'); > > fieldnames(s) > > ans = > > 'Geometry' > 'BoundingBox' > 'X' > 'Y' > 'ID' > 'CONTOUR' > > Then we would know what your data structure looks like. Although > my > data set isn't 3D here, I would try something like: > > x=[s(:).X]; > y=[s(:).Y]; > z=[s(:).Z]; % if I had a third dimension > > Then I would use a combination of meshgrid and griddata (or > gridfit, > available on the FEX) to create the surface. For details on this > procedure, search the CSSM. There are MANY posts asking the same > question. > > -ANdrew Many thanks. Everything is working perfectly.
|
Pages: 1 Prev: Optimal control problem Next: how to compile imview.m into .exe with R14 |