Unable to read xml file

11 Ansichten (letzte 30 Tage)
Syahirah Eshah
Syahirah Eshah am 22 Mai 2019
Beantwortet: Steve Miller am 5 Sep. 2020
I try to open the xml file which consist the robot arm model using "mech_import"
mech_import ('Join_2new_v6.xml')
and I get the errors below as result
Error using PMImport.ModelReader
"Join_2new_v6.xml" not found. Could not import the
specified XML file.
Error in PMImport.ModelUpdater
Error in PMImport.pmiu_import
Error in mech_import (line 98)
PMImport.pmiu_import(varargin{:});
what does the errors mean? what should I do for the model appear in simMechanics/simscape?
  1 Kommentar
KSSV
KSSV am 22 Mai 2019
The error says....MATLAB is unable to find the said file. See to it that the file given is in the present working direcotry or the path of the file is given correct.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Steve Miller
Steve Miller am 5 Sep. 2020
As KSSV noted, the error message "... not found" means the file is not in the current working directory and it is not on the path. You can get past that error by moving to the directory where the file is located and running the command again.

Kategorien

Mehr zu Simulation and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by