I'm trying to write a loop to import multible .arw files. However it keeps saying A matlab string constand is not terminated properly. When i import a single file it says Undefied variable ... or class ....

3 visualizzazioni (ultimi 30 giorni)
I'm trying to write a loop to import multible .arw files. However it keeps saying A matlab string constand is not terminated properly. When i import a single file it says Undefied variable ... or class .... what i tried for single data was Data= importdata(thedata.arw)

Risposte (1)

Stephen23
Stephen23 il 9 Mar 2015
Modificato: Stephen23 il 22 Mag 2015
The filename should be a string, so you need to use single quotes ' to define it as a string:
Data = importdata('thedata.arw');
Currently, without the quotes, you are telling MATLAB that is is a variable or class... which it isn't, thus the error.

Categorie

Scopri di più su Data Import and Analysis in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by