フィルターのクリア

reading text and number from excel

81 ビュー (過去 30 日間)
farfar
farfar 2019 年 1 月 18 日
編集済み: per isakson 2019 年 1 月 19 日
Hello
I have this big excel file incuding text and numbers. when I use t= xlsread('table.xlsx'); it removes the columns with string automatically. when I use t = readtable('table.xlsx'); I am able to see the whole table. however, I fail to do my main job which is plotting different columns versus others . what command should i use to be able read from a table including text and number and be able to do all regular matrix function? Thanks !
t = readtable('table.xlsx')
a=t(:,4)
b=t(:,6)
plot (a,b, '.')
lsline
  2 件のコメント
per isakson
per isakson 2019 年 1 月 18 日
編集済み: per isakson 2019 年 1 月 18 日
See
[num,txt,raw] = xlsread(___)
in the documentation and try
a=t{:,4}
b=t{:,6}
farfar
farfar 2019 年 1 月 19 日
it worked . thank you !

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by