[MATLAB Compiler] I want to run a Python package created on Linux on Windows. I get an error when specifying the path to the folder.
Show older comments
I want to read a file and process it in Matlab.
On Linux, the file is specified as follows.
filename = ['/home/test/file.csv'];
When we convert the file to a PythonPackage using Matlab Compiler on Ubuntu, and run Python on Ubuntu, it succeeds.
Modify the path so that it can be run on Windows as well.
filename = ['C:\test\file.csv'];
When using the Matlab Compiler after the modification, the following error is encountered.
The function or variable 'x' is not recognized.
How do I specify the path to a folder to make a PythonPackage on Linux and run it on Windows?
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!