How to I load data to my code?

I have a data set that was created in an excel sheet and then downloaded to my computer. I am trying to analyze that data using MATLAB but I am not sure how to open the data in MATLAB.

 Respuesta aceptada

Image Analyst
Image Analyst el 27 de Jul. de 2022
It depends on the format of the data file. Some things to try
data = readmatrix(fileName);
data = readcell(fileName);
data = importdata(fileName);
[data, strings, raw] = xlsread(fileName);

2 comentarios

Gabriel
Gabriel el 27 de Jul. de 2022
I tried all of these options but it just says invalid use of operator.
Gabriel
Gabriel el 27 de Jul. de 2022
I figured it out, thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 27 de Jul. de 2022

Comentada:

el 27 de Jul. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by