How to create an cell array

2 views (last 30 days)
Steven
Steven on 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.

Accepted Answer

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

More Answers (1)

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

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!