I'm new to MATLAB, so please pardon my naivety. There are many MATLAB CSV Read questions, but I believe this is different. I have a program that starts with
prompt = 'What is the name of the data vector to analyze? ';
data = input(prompt);
I respond with ’.../MATLAB Drive/File.csv’
. But the compiler does not seem to respond with anything after being provided the file path:
I'm not sure why this is the case. I tried doing data = csvread(filename)
instead, as well as fopen('filename.csv')
, as suggested by two of the answers above, but neither seemed to work. I also tried removing the three dots from the file path, as in MATLAB Drive/File.csv
, but MATLAB then claims "Invalid use of operator", referring to the forward slash "/". If anyone has any advice for how to resolve this issue, that would be much appreciated.
On a perhaps related note, MATLAB seems to run an older version of my code even after I save and run -- I'm not sure if this is due to an error in the CSV or with the software.