科学网

 找回密码
  注册
[转载]matlab求两坐标点组成直线的方位角
李祥飞 2022-7-4 11:13
参考代码:https://zhuanlan.zhihu.com/p/139760930 在其基础上进行的修改。 function =GetAzimuth_2points(point1,point2) %%功能:求Point1,相对与Point2的相对方位和距离 %point的格式: %批量操作 %point_Set= ; %point2= ...
个人分类: MATLAB|2074 次阅读|没有评论
matlab导出矢量图并插入word
李祥飞 2022-5-23 17:41
matlab导出eps矢量图 print(gcf, '-depsc', 'abc.eps'); 得到的eps文件已将四周的白边去除,可以打开并另存为pdf eps转emf 在线工具https://cloudconvert.com/emf-converter 将得到的emf直接复制粘贴到word中即可 这样得到的word转为pdf后,图片不失真 ...
个人分类: MATLAB|4806 次阅读|1 个评论
matlab无法打开并行
李祥飞 2021-11-12 13:10
【问题】输入 p=parpool运行后报错: Starting parallel pool (parpool) using the 'local' profile ... Error using parpool (line 103) Failed to start a parallel pool. (For information in addition to the causing error, validate the profile 'local' in the Cluster Profile Manager. ...
个人分类: MATLAB|4152 次阅读|没有评论
Matlab对矩阵元素进行分类
热度 1 李祥飞 2021-8-31 17:12
目标:对ESA CCI的土地利用类型(表1)进行重分类(表2)。 代码: % 构建5*15的分类矩阵veg_class,5代表重分类后大类的总数,15表示大类中最大的子类个数,其余用NaN填充。 注意:要把重分类后大类值最小(此处是0)的子类放在最后一行 。 veg_class = ; % 待重分类的矩阵veg_type veg_type = ; % 找 ...
个人分类: MATLAB|3307 次阅读|2 个评论 热度 1

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-14 05:55

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部