Unable to read xml file

조회 수: 11 (최근 30일)
Syahirah Eshah
Syahirah Eshah 2019년 5월 22일
답변: Steve Miller 2020년 9월 5일
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
KSSV
KSSV 2019년 5월 22일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Steve Miller
Steve Miller 2020년 9월 5일
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.

카테고리

Help CenterFile Exchange에서 Simulation and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by