Filter löschen
Filter löschen

How to create an cell array

3 Ansichten (letzte 30 Tage)
Steven
Steven am 26 Jul. 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.

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by