load data cell from Mat file from Matlab file

조회 수: 2 (최근 30일)
Mark Sc
Mark Sc 2021년 4월 6일
편집: David Fletcher 2021년 4월 6일
Hi all,
I am trying to load data cell from mat file, I used load function but still all I get is (struct with field), I would like to get the array numbers, as I read from excel
So, for the sake of brevity I attached similar file but with very limited data,
Please any help.. Anyone could tell me how to read the data in unnamed :: how to represent them... how to make ss= [1;2;3] not just struct with field [3*1] ???
clearvars;
clc;
ss = load('matlab_t.mat','unnamed'); %% I would like this to be ss=[1;2;3]

답변 (1개)

David Fletcher
David Fletcher 2021년 4월 6일
편집: David Fletcher 2021년 4월 6일
clearvars;
clc;
ss=load('matlab_t.mat','unnamed'); %% I would like this to be ss=[1;2;3]
ss=ss.unnamed

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by