필터 지우기
필터 지우기

Aero.Animation, can't load bodies from different folder

조회 수: 1 (최근 30일)
Vinci
Vinci 2014년 6월 4일
답변: marconi hello 2019년 9월 17일
Hello
I've a rather small but annoying problem. I need to run an Aero.Animation with several bodies I create with the createBody routine. Since the folder layout is already kinda messy I'd like to put my MatFiles into a subfolder... but whatever I do I can't get the createBody function to accept files with a relative path.
E.g.
if true
h.createBody('copter_blue.mat','MatFile');
end
works
but
if true
h.createBody('matfiles\copter_blue.mat','MatFile');
end
does not.
Every run simply errors with "Geometry file is not on the path."
Any suggestions? tia

답변 (1개)

marconi hello
marconi hello 2019년 9월 17일
h.createBody('.\matfiles\copter_blue.mat','MatFile');
this code may work!

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by