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

2 visualizaciones (últimos 30 días)
Vinci
Vinci el 4 de Jun. de 2014
Respondida: marconi hello el 17 de Sept. de 2019
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

Respuestas (1)

marconi hello
marconi hello el 17 de Sept. de 2019
h.createBody('.\matfiles\copter_blue.mat','MatFile');
this code may work!

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by