MATLAB: Replace an array with another array array hi all, I have an array A with dimensions 48×1 and i want to replace the elements 32:41 with another array B (10×1). how can I do that? thanks Best Answer A(32:41) = B Related SolutionsMATLAB: How to replace every other element in an array with another array A(1:2:end)=B MATLAB: Replacing elements in an array R=[1 2 1 2 2 2]';R(R==2) = 4;See Logical Indexing – Multiple Conditions Related QuestionCompare the rows of an array with another one’s arraySelecting elements from an arrayHow to combine arrays using NaN
Best Answer