找回密码
 注册
Simdroid-非首页
查看: 54|回复: 0

[前处理] 如何将文件路径保存为字符串变量?

[复制链接]
发表于 2015-7-3 15:58:50 | 显示全部楼层 |阅读模式 来自 湖北武汉
我的模型文件路径为E:\sue\simulation-20150701\model and current\model of cip,导入模型时用如下命令:
     ~parain,sheet,x_t,'E:\sue\simulation-20150701\model and current\model of cip',,0,0
没有问题,但由于利用这个路径的地方很多,想将路径定义为一个字符串变量,如下:
     model_path='E:\sue\simulation-20150701\model and current\model of cip'
     ~parain,sheet,x_t,model_path,,0,0
此时出错,显示没有该模型。请问各位,错在什么地方,应该怎么修改?
谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-20 05:17 , Processed in 0.024288 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表