Error in power_spectrum (line 9) M = csvread(devc_file,2,0);
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am new user of matlab and I need to use a matlab file that a developer did. Unfortunately I see this error:
Error in power_spectrum (line 9)
M = csvread(devc_file,2,0);
The name of my csv file is devc_file, and I placed it in the same folders ot the matlab file. Can someone tell me if I did something wrong?
0 个评论
回答(1 个)
madhan ravi
2018-11-17
M = readtable('devc_file.csv')
3 个评论
madhan ravi
2018-11-17
just try my answer , readtable can also read the csv file , plus you didn't use strings to define the filename that might be the reason for your error
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!