How to create an cell array

2 visualizaciones (últimos 30 días)
Steven
Steven el 26 de Jul. de 2013
I was wondering how do I go about creating an cell array from grade.txt file in excel to matlab. It wants me to use the grades from my homework and test and create an cell array with them. I am having trouble grasping how to do this.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Jul. de 2013
a=[1 2 3 4]
Your_cell_aray=num2cell(a)

Más respuestas (1)

Elad
Elad el 26 de Jul. de 2013
Editada: Elad el 26 de Jul. de 2013
You can use xlsread, and than put the data into a cell array like Azzi showed.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by