How to create an cell array

1 回表示 (過去 30 日間)
Steven
Steven 2013 年 7 月 26 日
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.

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by