MATLAB: How to define a single row in a vector arrayvector I have a vector with 11 rows and i want to extract row nr 6, i cant figure out how, and btw i'm new to the software. Best Answer A(6,:)http://www.mathworks.com/help/matlab/learn_matlab/array-indexing.html Related SolutionsMATLAB: Vector addition in a single row w = 2;N = 10; % N value may be anything as the length u need..for i = 1 : N out(i)=[w+i];end MATLAB: Element replacement in a vector Try this:b = [a(1:2), 5, 8, a(4:end)] Related QuestionSingle row matrix vector subtractionHow to create a matrix of N columns formed by just one vectorHow to extend a row vector down in increasing valuesSingle Line Command for Row Vector
Best Answer