Facing below problem while linking CoolProp with MATLAB
8 次查看(过去 30 天)
显示 更早的评论
pyversion
version: '2.7'
executable: 'C:\Users\Shehryar Ishaque\Anaconda2\python.EXE'
library: 'C:\Users\Shehryar Ishaque\Anaconda2\python27.dll'
home: 'C:\Users\Shehryar Ishaque\Anaconda2'
isloaded: 0
>> [v,e] = pyversion; system([e,' -m pip install --user -U CoolProp'])
'C:\Users\Shehryar' is not recognized as an internal or external command,
operable program or batch file.
ans =
1
0 个评论
采纳的回答
Walter Roberson
2021-12-27
[v,e] = pyversion;
cmd = sprintf('"%s" -m pip install --user -U CoolProp', e);
system(cmd)
4 个评论
Walter Roberson
2021-12-31
http://www.coolprop.org/apidoc/CoolProp.CoolProp.html documents CoolProp.CoolProp.HAPropsSI so once (recent enough) CoolProp is installed,
T = py.CoolProp.CoolProp.HAPropsSI('T', 'P', '101325', 'H', H, 'R', 1.0)
更多回答(1 个)
Shanmukha Voggu
2021-12-27
编辑:Shanmukha Voggu
2021-12-27
Hi naveed,
system(command) calls the operating system to execute the specified command.
If you want to run multiple commands, use && between consecutive commands for windows
Refer to documentation of system
Hope this helps!
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!