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 ....

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

Tags

Asked:

on 9 Mar 2015

Edited:

on 22 May 2015

Community Treasure Hunt

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

Start Hunting!