Undefined function "" for variables of type 'char'
显示 更早的评论
Hello,
i'm trying to pass a python string to a matlab function this way:
AutonomesAuto = eng.Input_Fahrzeug('AutonomesAuto',4.9,2.0,30.0,5.0,9.00,0.0)
The AutonomesAuto is an object. When running this, I get the follwoing error:
'Undefined function 'Input_Fahrzeug' for input arguments of type 'char'.'
Does anyone know how to solve this problem? Thanks!
3 个评论
Guillaume
2019-6-12
The AutonomesAuto is an object
It's completely irrelevant what it is. The code you've shown will destroy that object and replace it with whatever your function outputs.
Undefined function ...
You typically get this error when matlab cannot find the function (because it's not on matlab path). What does
which Input_Fahrzeug -all
return?
Eduardo Villalobos
2019-6-12
Guillaume
2019-6-12
Yes, matlab cannot find the function.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!