MATLAB: How to create the array [1, 2,2 ,3, 3, 3, 4,4 4, 4] arrayhomeworkMATLAB I would like to create an array that increases in repeated value with each as shown in the title [1,2,2,3,3,3,4,4,4.,.] Best Answer >> V = 1:10;>> floor(sqrt(2*V)+1/2)ans = 1 2 2 3 3 3 4 4 4 4 Related SolutionsMATLAB: From a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4] b = repelem(a,2) MATLAB: 1, 4, 7, 2, 5, 8, 3, 6, 9 serie a = reshape(1:9,3,3)';a = a(:)' Related QuestionHow to replace half the number of specific element in an arrayHow can enlarge a matrixPlot 3, describe centroidHow to calculate the accumulated rainfall value of 1, 2, 3, 4, 5, 6 and 7 days.Remove redundancy values from matrix
Best Answer