Effacer les filtres
Effacer les filtres

How to create an cell array

3 vues (au cours des 30 derniers jours)
Steven
Steven le 26 Juil 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.

Réponse acceptée

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

Plus de réponses (1)

Elad
Elad le 26 Juil 2013
Modifié(e) : Elad le 26 Juil 2013
You can use xlsread, and than put the data into a cell array like Azzi showed.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by