MATLAB: MATLAB on ramp, section 5.2, further practice. arrayindexing How can I access non-consecutive indices in a row vector? For e.g elements 1,3 and 6 in a column vector of 7×1 Best Answer Read this: https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html. For examplex = [1 2 3 4 5 6 7].'; % 7x1 vectory = x([1 3 6]); Related SolutionsMATLAB: Indexing into a matrix A([1 3 end-1],:)I highly recommend this explanation of indexing: https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html MATLAB: How to read the certain row and column from the cell array Example: x = [2 3 3 4 45] x(1:3) ans = 2 3 3 y = [8 90 79 23 4 34] y(4:6) ans = 23 4 34More info: https://es.mathworks.com/help/matlab/ref/colon.html?searchHighlight=indexar&s_tid=srchtitle Related QuestionLoren’s blog: Best programming practiceHow can we transpose a row vector into column vector in a cellBest practice with class/GUI
Best Answer