unable to input using filename (dxf)
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
My code: % Reading the dxf-file.
filename = input('Type the name of the dxf-file:');
In command window I write
my_dxf_file.dxf
(saved in the same folder as the file) but get the response:
Error using input Undefined function or variable 'my_dxf_file'
Anyone know why?
Thanks
0 commentaires
Réponse acceptée
Mischa Kim
le 26 Fév 2014
Modifié(e) : Mischa Kim
le 26 Fév 2014
Ellen, use
'my_dxf_file.dxf'
with the primes (to make it a string input).
0 commentaires
Plus de réponses (1)
Wayne King
le 26 Fév 2014
Modifié(e) : Wayne King
le 26 Fév 2014
If you want this to be a string, you need to enclose it in single quotest
filename = input('Type the name of the dxf-file:','s');
User enters:
'my_dxf_file.dxf'
0 commentaires
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!