Azzera filtri
Azzera filtri

How can I store data from an excel file to a 1D vector

3 visualizzazioni (ultimi 30 giorni)
I have an excel spreadsheet with many values all in one column. How can I import these into matlab to be saved as a 1D vector?

Risposte (1)

Star Strider
Star Strider il 12 Gen 2020
Use the readmatrix function (R2019a and later), or xlsread with earlier versions.
  2 Commenti
INDS
INDS il 12 Gen 2020
How can I get it to be stored as a variable which I can name?
Star Strider
Star Strider il 12 Gen 2020
Something like this:
Vector = readmatrix('YourExcelFile.xlsx');
or:
Vector = xlsread('YourExcelFile.xlsx');
depending on the function you use.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by