how to read cell in mat file ?

조회 수: 8 (최근 30일)
Oman Wisni
Oman Wisni 2018년 11월 6일
편집: Oman Wisni 2018년 11월 6일
hi, I have ex.mat file which contain value like below
X1 1 2 3
X2 2 3 4
when I using function
load('ex.mat');
the result will give all.
now I only want the result like below
1 2 3
2 3 4
it is possible to do that ?
when I using
result = ex(1,:)
The result only give me 1st row, I want 2nd row include to and all coloum
Any help will be very much appreciated.. thank you
  댓글 수: 2
Stephen23
Stephen23 2018년 11월 6일
@Oman Wisni: please upload your .mat file by clicking the paperclip button.
Oman Wisni
Oman Wisni 2018년 11월 6일
편집: Oman Wisni 2018년 11월 6일
Hi sir, that is only example. Here my .mat file.
I want to load the value from Input.mat for train using MLP, But when I load the file mat, that error. Cause in file mat is struct. the error like below :

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

채택된 답변

madhan ravi
madhan ravi 2018년 11월 6일
cell2mat(ex)

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by