필터 지우기
필터 지우기

Cell data in one colum

조회 수: 3 (최근 30일)
Auryn_
Auryn_ 2015년 11월 24일
댓글: Image Analyst 2015년 11월 25일
Hello,
I have a cell saved as a .mat file.
The file contains several cells. When I open each cell instead of showing the data in excel separate by columns it merges everything showing this:
val =
(2,1) 2.0000
(3,1) 3.0000
(4,1) 4.0000
...
(2,2) 0.0631
(3,2) 0.0631
(4,2) 0.0631
(5,2) 0.0631
...
and so on, instead of showing the data in different columns.
How can I separate the values per columns?
NOTE: I did the exercise before and it was showing perfectly the different columns. What could it be wrong?
Thanks a lot in advance for your reply.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 11월 25일
What do you mean by "open each cell"? xlsread() can return two cell arrays and one numerical array
[numericalMatrix, cellArrayStrings, cellArrayRaw] = xlsread(filename);
When you say "cell" do you mean like a MATLAB cell like is described in the FAQ http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F, or do you mean a cell like what Excel calles cells but MATLAB calls elements. And again, how do you "open" it?
How did you get that display? Did you just put val by itself on the line of code or in the command window? Or you did something else to generate it?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by