Borrar filtros
Borrar filtros

transmit a Excel file in a vector or matrix

1 visualización (últimos 30 días)
Furkan Öztürk
Furkan Öztürk el 21 de En. de 2020
Editada: BN el 21 de En. de 2020
Hi,
i'm searching for information to transmit a Excel file in a vector or matrix.
Thanks

Respuestas (1)

BN
BN el 21 de En. de 2020
Editada: BN el 21 de En. de 2020
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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by