excel data into a single columns using loop
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
LIM JIAXIN
am 30 Sep. 2018
Kommentiert: ANKUR KUMAR
am 1 Okt. 2018
Does anyone know how to make this data into a single columns with spacing interval using for loop? from top data to bottom data

.

2 Kommentare
Akzeptierte Antwort
ANKUR KUMAR
am 30 Sep. 2018
What do you mean by equal spacing between each column. You cannot keep blank any element in matrix. You can do in cell. Here is an example.
A=xlsread('example.xlsx')
reshape(A,[],1) %if you want without keeping blank between each column
B=arrayfun(@(x) num2str(x) , A,'uni',0);
C=[B';{'','','';'','',''}];
reshape(C,[],1)
12 Kommentare
ANKUR KUMAR
am 1 Okt. 2018
A=xlsread('example.xlsx')
A(2,:)=[];
reshape(A,[],1) %if you want without keeping blank between each column
B=arrayfun(@(x) num2str(x) , A,'uni',0)
C=[B;{'','','';'','',''}];
reshape(C,[],1)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!