matlab打开shp文件并读取
时间: 2023-08-07 20:08:39 浏览: 251
Matlab 读取Shape文件
5星 · 资源好评率100%
你可以使用以下代码来打开和读取shp文件:
```matlab
s = shaperead('xx.shp');
s = struct2table(s);
```
这段代码首先使用`shaperead`函数打开shp文件,并将其转换为结构体数组。然后,使用`struct2table`函数将结构体数组转换为表格格式。这样,你就可以方便地对shp文件进行操作和处理了。
#### 引用[.reference_title]
- *1* [Matlab读取shp数据、显示和增加字段-2021-09-15](https://blog.csdn.net/qq_39632121/article/details/120303529)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [【Matlab】读取".shp"文件](https://blog.csdn.net/zhangyonghui007/article/details/89927703)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文