How to create an cell array

조회 수: 8 (최근 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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by