フィルターのクリア

transmit a Excel file in a vector or matrix

3 ビュー (過去 30 日間)
Furkan Öztürk
Furkan Öztürk 2020 年 1 月 21 日
編集済み: BN 2020 年 1 月 21 日
Hi,
i'm searching for information to transmit a Excel file in a vector or matrix.
Thanks
  1 件のコメント
Alex Mcaulley
Alex Mcaulley 2020 年 1 月 21 日
What do you mean by "transmit"? Maybe xlsread??

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

回答 (1 件)

BN
BN 2020 年 1 月 21 日
編集済み: BN 2020 年 1 月 21 日
I think you want to import an excel file into Matlab.
You can use xlsread if your excel format is .xls
myfile = xlsread('filename.xlsx') %or xls (it depends on format of your excel file)
or csvread if your excel file is .csv
myfile = csvread('filename.csv')
Alternatively, I recommend you to import your excel file using one of these commands:
myfile = readtable('filename.xlsx') %or filename.csv or filename.xls
you can read your excel file as a matrix:
A = readmatrix('filename.xlsx')
Or even read it as cell structure:
C = readcell('filename.xlsx')
once data is read into the workspace using any of the above-mentioned commands, you can do whatever you want.

カテゴリ

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