Error reading VRML file: ***.wrl: Can't open file for reading.
Ältere Kommentare anzeigen
Hi I have an issue when i try to open a .wrl file.
Here's my code :
world=vrworld('my_satellite', 'new');
open(world);
Here's the error message
Error reading VRML file: ***.wrl: Can't open file for reading.
4 Kommentare
Sheraz Ali
am 2 Apr. 2017
i have same issue.if you find any sln can you forward it to me.
koray beyaz
am 30 Okt. 2017
Try using the full path of the file instead of 'my_satellite'. For example:
world=vrworld('C:\Users\Pc\Desktop\my_satellite.wrl','new');
KA The Times
am 23 Apr. 2020
Thank you koray beyaz
Peter Basár
am 28 Mär. 2021
For me, the issue was that I wasn't in the model directory with my workspace. So first launch matlab and then have it open in the directory where your model is located or from where the code was made.
I've been using just the simulink model so the matlab wasn't inclined to tell me that I'm not in the directory of that model where there are possible external files needed to be loaded and linked with simulink. These external files were addressed with relative paths and so the matlab couldn't find them in the workspace default folder.
Antworten (1)
Nathan Hardenberg
am 23 Apr. 2021
1 Stimme
For me the problem was the path. One folder contained a #-symbol which caused the error. Even if the path is relative a # in the absolut path can cause the error. So with the comments in mind a list to fix the error:
- Check if the workspace directory is the desired one
- Try using the absolute path to the file
- Check the abolute path for any uncommon sybols (Spaces and Underlines work; # does not work)
1 Kommentar
Peter Jett
am 1 Feb. 2022
Thank you so much this was exactly my problem.
Kategorien
Mehr zu Interactive Model Editing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!