matlab - MATLAB - 将路径中的最后一个文件夹保存为字符串?(句法)
问题描述
Ball='C:\----\--\Documents\----\ -----\ Ball - BEST';
给定目录的路径,如何将直接目录保存为字符串?
解决方案
您可以使用 UNIX 命令“pwd”
% On C:\----\--\Documents\----\ -----\ Ball - BEST directory
Ball = pwd;
% Ball = 'C:\----\--\Documents\----\ -----\ Ball - BEST'
推荐阅读
- flutter - 颤振中的测试错误-断言失败:布尔表达式不能为空
- javascript - angular js ng-click ng-controller 和 ng-app
- java - 为什么 Room 的 @Database 在 Kotlin 中将实体作为 arrayOf 获取,而 Java 不获取数组?
- c++ - 在 manjaro linux 中的 CLion 中出现 CMake 错误
- tfs - 获取“错误 5 获取目标的文件系统类型”访问被拒绝:起诉 TFS Windows 机器文件复制任务
- office-store - 更新插件的测试说明
- quantum-computing - Q# 中的多项式方程 E=MC^2
- typescript - 解析 TypeScript 以生成简单的调用图
- shell - 如何在 GNU bash 中检查输入是数字还是字母
- javascript - 路由更改时组件未加载