Borrar filtros
Borrar filtros

how to read in unequal columns from an excel sheet

6 visualizaciones (últimos 30 días)
Robert Jones
Robert Jones el 11 de Sept. de 2023
Comentada: Dyuman Joshi el 11 de Sept. de 2023
Hello
I have an excel sheet with four column that are unequal in size
How would I read them into 4 matlab arrays?
Thank you
  4 comentarios
Robert Jones
Robert Jones el 11 de Sept. de 2023
also I chose 4 as an example. in realiy they might be in the hundrets
Dyuman Joshi
Dyuman Joshi el 11 de Sept. de 2023
"in realiy they might be in the hundrets"
Noted.
And what do you want to do with the different arrays? Do you want to perform some kind of operation/data manipulation on the them? or something else?

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Sept. de 2023
readtable() to read all entries together. Then take one variable at a time and trim off trailing empty entries.
Or possibly multiple readtable() or readmatrix() calls with 'Range' parameter indicating which column to read.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by