How to create an cell array

3 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(1 个)

Elad
Elad 2013-7-26
编辑:Elad 2013-7-26
You can use xlsread, and than put the data into a cell array like Azzi showed.

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by