How can you replace a single element in a vector with a vector? I tried using logical indexing but it says "In an assignment A(I) = B, the number of elements in B and I must be the same." Kindly help.Thanks in advance.
MATLAB: How to replace an integer in a vector with another vector
MATLABreplace
Best Answer