Error in reading csv file with xlsread

Hi all,
Attached is the csv file. I tried everything but can't seem to read the file. Most people in the Mathworks are saying that xlsread should do the trick but it didn't for me.
Please let me know what else i can do to read it

 採用された回答

Star Strider
Star Strider 2020 年 5 月 17 日

0 投票

I had no problems reading it and plotting it with xlsread (although I cannot determine if the data are plotted correctly because I have no idea what the data represent). (I am using R2020a.)
Try this:
D = xlsread('Radar_frames_Mat.csv');
x = D(1,2:end);
y = D(2:end,1);
figure
mesh(x, y, D(2:end,2:end))
grid on

4 件のコメント

ARN
ARN 2020 年 5 月 18 日
I think the problem is with my MATLAB. I am installing MATLAB 2020 , hopefully i will not get any errors in that.
Star Strider
Star Strider 2020 年 5 月 18 日
If you are installing R2020a, the readmatrix function is now preferred over xlsread. (Another option is readtable, although it likely makes no difference with this particular file, and may actually not be appropriate for it. I am just alerting you to its presence.)
ARN
ARN 2020 年 5 月 18 日
Thanks, xls worked fine with R2020a.
Star Strider
Star Strider 2020 年 5 月 18 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

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

製品

質問済み:

ARN
2020 年 5 月 17 日

コメント済み:

2020 年 5 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by