Error in power_spectrum (line 9) M = csvread(devc_file,2,0);

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?

回答 (1 件)

madhan ravi
madhan ravi 2018 年 11 月 17 日

1 投票

M = readtable('devc_file.csv')

3 件のコメント

SYML2nd
SYML2nd 2018 年 11 月 17 日
can you explain better?
madhan ravi
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
SYML2nd
SYML2nd 2018 年 11 月 17 日
編集済み: madhan ravi 2018 年 11 月 17 日
Error: File: power_spectrum.m Line: 9 Column: 15
Character vector is not terminated properly.
madhan ravi's reply: in that case upload your data file and your script file

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeVariables についてさらに検索

製品

リリース

R2018b

タグ

質問済み:

2018 年 11 月 17 日

編集済み:

2018 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by