How do i make an array like this?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen

Currently i have this variable.
Can i check how do i make the array to become like this? Theres 2 rows of empty spacing for every value.
4
5
5
5
3 Kommentare
Elijah Smith
am 30 Okt. 2019
x = [4; NaN; NaN; 5; NaN; NaN; 5; NaN; NaN; 5];
%or
x = {};
x{1,1} = 4;
x{4,1} = 5;
x{7,1} = 5;
x{10,1} = 5;
%or
x = ["4";"";"";"5";"";"";"5";"";"";"5"]
Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types 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!