Azzera filtri
Azzera filtri

How to create an cell array

3 visualizzazioni (ultimi 30 giorni)
Steven
Steven il 26 Lug 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.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 26 Lug 2013
a=[1 2 3 4]
Your_cell_aray=num2cell(a)

Più risposte (1)

Elad
Elad il 26 Lug 2013
Modificato: Elad il 26 Lug 2013
You can use xlsread, and than put the data into a cell array like Azzi showed.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by