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 ....
Show older comments
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)
Answers (1)
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.
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!